New Features
Now usePromise is also observed by the useSuspense Hook.
With this, you can create interfaces that react from the parent component to the asynchrony of its children.
New hook useProvider
With this new hook, you can set the context instance, for example:
const Theme = createContext({ mode: "light" });
const App = c(() => {
useProvider(Theme, { mode: "dark" });
});
Internal improvements
- The context api is improved to synchronize states according to the HTML.