Flutures
Closed this issue · 0 comments
urgent commented
- Remove random from function. Need pure.
- Add local state with relay when starting response
https://relay.dev/docs/en/local-state-management#create - fetchQuery in same space, with response
- if no state, start as normal
- if state exists, cancel fluture
Can't store futures in state. Might not need futures, just local state:
Relay with local state
Response:
- Receive request
- Mutate relay
- Wait
- Check relay
- If exists, cancel
- If not exists, run
Response:
- Receive response
- Mutate relay
Each mutation has a timestamp
Delete anything under 3 seconds