This repository has been archived on 2022-08-19. You can view files and clone it, but cannot push or open issues or pull requests.
hydrogen-web/doc/persisted-network-calls.md

9 lines
337 B
Markdown
Raw Normal View History

# General Pattern of implementing a persisted network call
1. do network request
1. start transaction
1. write result of network request into transaction store, keeping differences from previous store state in local variables
1. close transaction
1. apply differences applied to store to in-memory data
1. emit events for changes