github QwikDev/qwik v0.0.40

latest releases: v1.6.0, v1.5.7, v1.5.6...
23 months ago

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: v0.0.39...v0.0.40

Don't miss a new qwik release

NewReleases is sending notifications on new releases.