How Saving Data Works in Remake
- Data is always deep extended, so overwriting data unnecessarily is always avoided
- Useful for creating multi-page applications: if you attach a
key:id
attribute to an element (with its value set to the unique id that's auto-generated for every nested object in your Remake database), then, when that element's data is modified, its data will be saved directly to that unique id in the database and not affect the rest of the page.
- When data is deep extended, Remake always extends arrays by matching the unique ids of its child objects, so the data in deeply-nested arrays is preserved and never overwritten completely
☰ Menu