Closed euaaaio closed 3 years ago
Would it be better to create Auth store?
Auth
let { userId, isAuthentificated } = useStore(Auth(useClient()))
With this store, useAuth became just a small wrapper:
useAuth
function useAuth () { return useStore(Auth(useClient())) }
and it will be easy to backport it to other frameworks.
Wow. It would be very consistent for Logux.
LGTM. Will look closer and merge tomorrow.
Would it be better to create
Auth
store?With this store,
useAuth
became just a small wrapper:and it will be easy to backport it to other frameworks.