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
Currently we've hard-coded our state persistence into the UI layer and are using the localStorage of the browser. We should instead be making API calls into the Lib layer, and using an interface the implementer of the library supplies upon initialization.
For example:
import{initStateStore}from"lib/state";// localStorage in browser, file in CLIsetStateStore({getItem: (key: string)=>{ ... },setItem: (key: string,value: string)=>{ ... },clearItem: (key: string)=>{ ... }});// later in the applicationgetSavedDAO();saveDAO(dao);
The text was updated successfully, but these errors were encountered:
Currently we've hard-coded our state persistence into the UI layer and are using the localStorage of the browser. We should instead be making API calls into the Lib layer, and using an interface the implementer of the library supplies upon initialization.
For example:
The text was updated successfully, but these errors were encountered: