Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

useStore #7

Closed
dy opened this issue Nov 14, 2019 · 3 comments
Closed

useStore #7

dy opened this issue Nov 14, 2019 · 3 comments

Comments

@dy
Copy link
Owner

dy commented Nov 14, 2019

High-level store/persistency provider.

let [ value, setValue ] = useStore(key, initialValue, { persist: true|'localStorage'|'queryString'|'attribute'|fn })
@dy
Copy link
Owner Author

dy commented Nov 19, 2019

That possibly can be spect hook, coupled with storage aspect.
Same is for useAction hook - they make not much sense as own abstraction.

@dy
Copy link
Owner Author

dy commented Dec 6, 2019

Does not make much sense for it to implement BroadcastChannel - usual case is just storing data.
If data have to be broadcast live - use useChannel for that purpose.

@dy
Copy link
Owner Author

dy commented Dec 6, 2019

Done!

@dy dy closed this as completed Dec 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant