You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
loadData might not finish before the page is reloaded, potentially causing problems if your page proeprly loading depends on smilestore.data being synced with firestore (if not synced, it resets to initial values). In particular, it caused problems for me when browser refreshes.
Using await in front of loadData fixes this for me. Unclear if this should also be done in main template, since it could cause latency if loadData is not needed for page loading, but maybe good to document regardless.
The text was updated successfully, but these errors were encountered:
see linked code snippet - https://github.com/NYUCCL/smile/blob/ba3239653faca5d5fc9e17cfcb05adace01cf7d8/src/router.js#L203C1-L206C6
loadData might not finish before the page is reloaded, potentially causing problems if your page proeprly loading depends on smilestore.data being synced with firestore (if not synced, it resets to initial values). In particular, it caused problems for me when browser refreshes.
Using await in front of loadData fixes this for me. Unclear if this should also be done in main template, since it could cause latency if loadData is not needed for page loading, but maybe good to document regardless.
The text was updated successfully, but these errors were encountered: