CRUD / foldkit-crud
When something fails
Nothing here retries on its own: a failure stays visible until your application asks again.
| What happened | What the piece reports | What to do |
|---|---|---|
| A list's page could not be read | page(model) is Failed, with previous rows if it had some | refresh(model) from a retry button |
| A detail's value could not be read | value(model) is Failed | refresh(model) |
| An editor's record could not be read | LoadFailed; a record read before and failed on refresh stays Editing, showing the last good value | refresh(model) |
| A save failed | SaveFailed; the drafts are kept | show saveError(model); the user submits again |
| A delete failed | DeleteFailed | show error(model); ask again |
| The record was deleted, here or elsewhere | a detail reads NotFound, an open editor reports NotFound, and it leaves every list | close the screen or say so |
A piece's active is not wired | it stays Initial or Loading, and nothing reports it | wire every piece with Crud.actives |