What's Changed
useWatch()
track argument changes
Previously useWatch()
was passed a callback which would receive a track
function. As of 0.0.40
the passed in argument is now an object with the track
property that's a function.
-useWatch$((track) => {
+useWatch$(({ track }) => {
const doubleCount = track(store, 'doubleCount');
const timer = setTimeout(() => {
store.debounced = doubleCount;
}, 2000);
return () => {
clearTimeout(timer);
};
});
useScopedStyles()
renamed to useStylesScoped()
- import { useScopedStyles } from '@builder.io/qwik';
+ import { useStylesScoped } from '@builder.io/qwik';
Features
- feat: in-order streaming ssr render by @manucorporat in #861
- feat: serialize component references by @mhevery in #876
- feat: update prefetch implementation options by @adamdbradley in #935
- feat: force mutable props by @manucorporat in #932
Fixes
- Fix Node Fetch import by @nnelgxorz in #859
- Windows support by @robisim74 in #853
- fix: vite resolveQwikBuild option by @adamdbradley in #878
- fix(runtime): serialize null prototype objects by @manucorporat in #896
- fix: streaming render fixes by @manucorporat in #904
- fix: scoped styles by @manucorporat in #908
- fix: qtest in prod mode by @manucorporat in #961
- fix: update yield codegen (update swc) by @manucorporat in #965
- fix:
_useMutableProps
by @mhevery in #969
Refactor
- refactor: ship latest API stabilizations by @manucorporat in #912
- refactor: change
useUserContext
touseEnvData
by @shairez in #901 - refactor: final public API review by @manucorporat in #916
New Contributors
- @robisim74 made their first contribution in #853
- @gilf made their first contribution in #923
- @ImBIOS made their first contribution in #943
- @Priestch made their first contribution in #952
- @forresst made their first contribution in #962
- @felixsanz made their first contribution in #984
Full Changelog: v0.0.39...v0.0.40