-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Persistent data storage #4
Comments
tomaspietravallo
added
the
on-the-roadmap
Will be actively worked on in the future
label
Aug 14, 2021
tomaspietravallo
added a commit
that referenced
this issue
Aug 19, 2021
`createState` might be modified in the future. Last big feature to be released before closing #1. `createState` might be used in the future in combination with the Multipeer API to facilitate the creation of Video Calling/ARVC experiences Tests using an improved Persistence mock module need to be added (#8)
tomaspietravallo
added a commit
that referenced
this issue
Aug 20, 2021
`createState` might be modified in the future. Last big feature to be released before closing #1. `createState` might be used in the future in combination with the Multipeer API to facilitate the creation of Video Calling/ARVC experiences Tests using an improved Persistence mock module need to be added (#8)
tomaspietravallo
added a commit
that referenced
this issue
Aug 20, 2021
Some of the main changes include: * First beta release, initial contents * Fix onLoad/onFrame accessors * screenToWorld2D & minor Vector changes. #5 * Camera & focalDistance * Improvements and extra functionality * Dynamic snapshots. Addresses #7 * Improvements + major changes to World.run * Fix pause on DEV mode * Runs TimedEvents in order * addToSnapshot & removeFromSnapshot * Introduce Jest tests & CI #2 * Tests and bug fixed * createState, Persistant data storage. #4
tomaspietravallo
added a commit
that referenced
this issue
Aug 20, 2021
tomaspietravallo
added a commit
that referenced
this issue
Aug 21, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add an interface to save/fetch Persistent data.
As of now, the idea is to use the setDebounce function + some wrapper to make the process of saving/loading data easier, while preventing any bad code from overloading the API.
Note: Potential bug:
Previously, the Persistence module had a bug which caused a promise to never(/30s+) resolve, depending on the implementation, this would slow down or completely prevent an experience from running.
This was patched by using
Promise.race
, and was later addressed by the Spark/IG dev team, but it would be nice to be prepared for any similar bugs.My guess is that the PersistenceModule is more reliant on the device + isn't used as much by creators, so the issue might have passed internal tests without anyone noticing. (This is pure speculation and I have no basis).
In any case, making use of
Promise.race
seems like the better optionThe text was updated successfully, but these errors were encountered: