mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-22 21:51:25 +03:00
Remove fetcher module which is now covered inline in package docs.
This commit is contained in:
parent
c36ab1ccac
commit
1fe11c9253
@ -1,17 +0,0 @@
|
||||
# Fetchers
|
||||
|
||||
The difference between a Fetcher and the built-in submission/page reloading Effects/Msg's is:
|
||||
|
||||
## Fetcher
|
||||
|
||||
- Doesn't cause a page change ever
|
||||
- Gives you a Msg back when the data arrives
|
||||
- Can have multiple concurrent fetchers
|
||||
|
||||
## Non-Fetcher
|
||||
|
||||
- Available through static argument in view/init/update (not a Msg), so you don't need to keep anything in your Model (the static.data : Data and static.action : Maybe ActionData)
|
||||
- Only one in-flight at once
|
||||
- Can cause a page navigation
|
||||
|
||||
So if you don't want to keep things in your Model at all, you just don't use fetchers, and you can have a dynamic app with client-side submissions where the client-side state is entirely owned by elm-pages by accessible to the user
|
Loading…
Reference in New Issue
Block a user