Skip to content

Say hello to [email protected] 🚀, asynchronously friendlier 🤗🤝.

Compare
Choose a tag to compare
@UpperCod UpperCod released this 31 Mar 04:13
· 21 commits to master since this release

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

  1. The context api is improved to synchronize states according to the HTML.