cefn / watchable

Repo for @watchable/store and supporting packages.
MIT License
5 stars 1 forks source link

Function form of useStore initialiser #31

Closed cefn closed 10 months ago

cefn commented 1 year ago

If people employ the useStore initialiser, it might be good to have a factory-style function for state that allows you to also execute run-once tasks such as document keypress subscription.

cefn commented 10 months ago

Closing in favour of https://github.com/cefn/watchable/issues/44 probably this should do less not more.