While reading the docs for miragejs, on this page, it says:
Mirage resets its state on every browser reload, which can be a double-edged sword but is often what you want for development and testing. (You can use localStorage if you'd like to add temporary persistence to Mirage.)
However, I can't seem to find any documentation or examples anywhere on how to actually set up local storage for db persistence.
Does anyone have any experience with this, or know of some code examples or walkthroughs I could reference?
a crude solution would be to dump the db after each modification:
and restore it upon server creation: