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
when use in react it work fine when setUserSettings, get new value:
const userSettings = use$(getUserSettingsInit())
but when use in vanilla js (chrome extension service worker) , it alway get init value or old value so how to get update value
when call getUserSettingsInit() in vanilla js.
try to use
export const getUserSettingsInit = async () => {
const syncState$ = syncState(users$)
await when(syncState$.isPersistLoaded) // stop here and not continue it
const userId = localDb$.userId.get();
return users$[userId].get()?.settings || initialUser.settings;
}
but this not work , it just stop there when add it .
The text was updated successfully, but these errors were encountered:
when use in react it work fine when setUserSettings, get new value:
but when use in vanilla js (chrome extension service worker) , it alway get init value or old value so how to get update value
when call getUserSettingsInit() in vanilla js.
try to use
but this not work , it just stop there when add it .
The text was updated successfully, but these errors were encountered: