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

useResource #29

Open
dy opened this issue Jan 11, 2020 · 0 comments
Open

useResource #29

dy opened this issue Jan 11, 2020 · 0 comments

Comments

@dy
Copy link
Owner

dy commented Jan 11, 2020

Can be useful to indicate loading state.
That is incurred by gotcha from wishbox - we need to initialize cart with experiences, after the experiences are loaded. For that matter we could wait for experiences condition in reactive aspect, and once they're loaded - that'd trigger initialization.

let [data, {loading}] = useResource(someSource)

That can be akin to useAsyncSource

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