Closed anthonator closed 9 years ago
If I put a console.log
in the render()
method nothing shows up in the console until the remote fetch has completed.
Just discovered pending
in containers. Fixes my problem.
FWIW, looking at this a bit, it does seem like it might be tricky to deal with pending when there are potentially multiple data fetches outstanding. Maybe best to just use multiple containers in that case.
FYI We pass any finished fetches into the pending handler if you want to define default values
My bad. Could be worth updating the docs to reflect this, then, unless they already say this and I just missed it.
That feature is only 4 days old (#300), It's in the v0.10 docs but will back port to v0.9 over the weekend
Ah! That makes sense then. Thanks!
When mounting a component that requires data be fetched remotely using a container/store/query the component will stop rendering until the data is fetched. This effectively prevents me from having the ability to show load states. I just have empty areas on the page where components should be.
Component
Container