edbentley / replay

A cross-platform JS game engine inspired by React
https://replay.js.org
MIT License
298 stars 11 forks source link

Async Storage #71

Closed edbentley closed 3 years ago

edbentley commented 3 years ago

Breaking changes

Being async means we can use native storage - e.g. on iOS, localStorage has a maximum size of 5 MB. iOS now uses UserDefaults which has no limit. Storing by key is closer to how it's done on the platform level and so should be more performant.