call preference get for all users
This commit is contained in:
parent
290acb6247
commit
f5d8531b8e
1 changed files with 7 additions and 7 deletions
|
@ -156,6 +156,13 @@ function App(props: Props) {
|
|||
}
|
||||
}, [hasVerifiedEmail, signIn, hasSignedIn]);
|
||||
|
||||
// @if TARGET='app'
|
||||
useEffect(() => {
|
||||
console.log('?');
|
||||
updatePreferences();
|
||||
}, []);
|
||||
// @endif
|
||||
|
||||
useEffect(() => {
|
||||
if (hasVerifiedEmail && syncEnabled) {
|
||||
checkSync();
|
||||
|
@ -169,13 +176,6 @@ function App(props: Props) {
|
|||
};
|
||||
}
|
||||
}, [hasVerifiedEmail, syncEnabled, checkSync]);
|
||||
// @if TARGET='app'
|
||||
useEffect(() => {
|
||||
if (hasVerifiedEmail === false) {
|
||||
updatePreferences();
|
||||
}
|
||||
}, [hasVerifiedEmail]);
|
||||
// @endif
|
||||
|
||||
useEffect(() => {
|
||||
if (syncError) {
|
||||
|
|
Loading…
Add table
Reference in a new issue