Adjust some initial states to optimize initial render (#265)
This commit is contained in:
parent
8fd6382bf4
commit
5639e4c1ff
2 changed files with 2 additions and 2 deletions
web/component/browserNotificationSettings
|
@ -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()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue