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
Fixes
Refactor
New Contributors
Full Changelog: https://github.com/BuilderIO/qwik/compare/v0.0.39...v0.0.40