dependabot[bot] on npm_and_yarn
Bump svelte from 3.0.0-beta.20 … (compare)
dependabot[bot] on npm_and_yarn
Bump svelte from 1.64.1 to 3.49… (compare)
dependabot[bot] on npm_and_yarn
dependabot[bot] on npm_and_yarn
Bump moment from 2.24.0 to 2.29… (compare)
dependabot[bot] on npm_and_yarn
dependabot[bot] on npm_and_yarn
Bump moment in /angular4-Bootst… (compare)
So I would not be concerned by that, in practice I have not seen it happening:
This could result in a long chain of actions that need to occur before the view is updated again
@arcfide
in the example wiring, the persistence will only ever happen after rendering,
I agree, I am not disputing that, what's important to note is that the pattern first appeared in 2016 and since then lots of discussions have happened and I have produced a lot of materials that may sometimes conflict with the current view of the pattern. It was shaped with discussions such as this one by the community, not just by me.
persisting the model should be considered a separate Action that is triggered automatically from the NAP due to changes in the model state
That would be my view, though, as I mentioned you have to distinguish between persisting the entire application state (model.persist()) and side effects of the current actions (persisting the data from a form, after proposal and application state mutation).
I'm thinking here of a waiting/loading bar or spinner
Yes, that's the tough case :-), last time I checked, even Redux was spinning it before entering Redux and the rendering of the application state would them stop it. What's original about SAM is the positioning of API calls with respect to the pattern (queries in actions and synchronous updates in the model).
The View can't update itself with a submitting icon, only the State() function changing the View can do that.
Yes, and again, if HTML was designed properly we would not have these questions, it mixes paradigms and therefore your implementation has to deal with that. You can't use a state representation, aka V = f(M), with a non declarative behavior.
submitting
order because it depends on how you implement it. Perhaps that blog sample (with updates on the backend) would help visualize how it could be done: https://github.com/jdubray/sam-samples/blob/master/crud-blog/blog.js