You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
It would be convenient to be able use recollect through the React hooks API, to avoid wrapping components in a HOC
Describe the solution you'd like
Ideally, a useStore hook would work something like this:
exportdefault(props)=>{conststore=useStore();constname=store.name;// Recollect will now rerender this component when name is updatedreturn<div>Hello,{store.name}</div>;}
Describe alternatives you've considered
Currently this is possible using the HOC pattern. However, many libraries are providing a way to consume them via hooks, and the syntax is a little more concise.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
It would be convenient to be able use recollect through the React hooks API, to avoid wrapping components in a HOC
Describe the solution you'd like
Ideally, a
useStore
hook would work something like this:Describe alternatives you've considered
Currently this is possible using the HOC pattern. However, many libraries are providing a way to consume them via hooks, and the syntax is a little more concise.
The text was updated successfully, but these errors were encountered: