Adjust some initial states to optimize initial render ()

This commit is contained in:
Dan Peterson 2021-11-10 13:15:40 -06:00 committed by GitHub
commit 5639e4c1ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions
web/component/browserNotificationSettings

View file

@ -11,7 +11,7 @@ export default () => {
const [pushPermission, setPushPermission] = useState(window.Notification?.permission);
const [subscribed, setSubscribed] = useState(false);
const [pushEnabled, setPushEnabled] = useState(false);
const [pushSupported, setPushSupported] = useState(false);
const [pushSupported, setPushSupported] = useState(true);
const [encounteredError, setEncounteredError] = useState(false);
const [user] = useState(selectUser(store.getState()));