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]);
|
}, [hasVerifiedEmail, signIn, hasSignedIn]);
|
||||||
|
|
||||||
|
// @if TARGET='app'
|
||||||
|
useEffect(() => {
|
||||||
|
console.log('?');
|
||||||
|
updatePreferences();
|
||||||
|
}, []);
|
||||||
|
// @endif
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (hasVerifiedEmail && syncEnabled) {
|
if (hasVerifiedEmail && syncEnabled) {
|
||||||
checkSync();
|
checkSync();
|
||||||
|
@ -169,13 +176,6 @@ function App(props: Props) {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}, [hasVerifiedEmail, syncEnabled, checkSync]);
|
}, [hasVerifiedEmail, syncEnabled, checkSync]);
|
||||||
// @if TARGET='app'
|
|
||||||
useEffect(() => {
|
|
||||||
if (hasVerifiedEmail === false) {
|
|
||||||
updatePreferences();
|
|
||||||
}
|
|
||||||
}, [hasVerifiedEmail]);
|
|
||||||
// @endif
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (syncError) {
|
if (syncError) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue