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
{{ message }}
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.
As a XState newbie, I'm a bit confused when finding the simpleDataFetch example -
there is no hint at all about how to actually implement actual (real or mock) data fetching:
where should the fetch code live? (In the empty services: fetchData method, I guess...)
how should I notify the machine about a sucessful fetch request? (sending an RECEIVE_DATA event together with the associated data:Data field back to the machine, I guess...)
how should I notify the machine about a data loading error? (No idea, there is no error type event...)
how can the Variables type be used? (No idea...)
At least, the simpleDataFetch example should have some commented out implementation example lines to give the user (me!) an idea about how to get some actual data flowing.
Best! / Jonas
The text was updated successfully, but these errors were encountered:
cambiata
changed the title
Confused about simpleDataFetch example - no hint of how fetch implementation
Confused about simpleDataFetch example - no hint of actual implementation
Mar 1, 2023
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
As a XState newbie, I'm a bit confused when finding the simpleDataFetch example -
there is no hint at all about how to actually implement actual (real or mock) data fetching:
services: fetchData
method, I guess...)RECEIVE_DATA
event together with the associateddata:Data
field back to the machine, I guess...)At least, the simpleDataFetch example should have some commented out implementation example lines to give the user (me!) an idea about how to get some actual data flowing.
Best! / Jonas
The text was updated successfully, but these errors were encountered: