Deprecated features
These features were deprecated in the preparation of Qwik for its stable release.
If you happened to come across one of them and don't know what its replacement is, we quickly mention them in this table with the link to their new documentation ✨.
Qwik
Deprecated functions and their replacements
Deprecated | Replacements |
---|---|
useWatch$ | useTask$ |
useMount$ | useTask$ |
useServerMount | useTask$ + isServer |
useClientMount | useTask$ + isBrowser |
useClientEffect - useClientEffectQrl | useVisibleTask$ |
useBrowserVisibleTask - useBrowserVisibleTaskQrl | useVisibleTask$ |
useEnvData | useServerData |
useRef | useSignal |
createContext | createContextId |
Qwik City
Deprecated functions and their replacements
Deprecated | Replacements |
---|---|
useEndpoint | routeLoader$ |
loader$ - loaderQrl | routeLoader$ |
action$ - actionQrl | routeAction$ |