-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[menu-bar] Bump electron to 33.2.0 and react to 18.3.1 #218
Conversation
export class Logs { | ||
private logs = this.get(); | ||
|
||
push(log: Log) { | ||
this.logs.push(log); | ||
if (Platform.OS === 'web') { | ||
localStorage.setItem('logs', JSON.stringify(this.logs)); | ||
} | ||
} | ||
|
||
get(): Log[] { | ||
if (Platform.OS === 'web') { | ||
return JSON.parse(localStorage.getItem('logs') ?? '[]'); | ||
} | ||
return this.logs ?? []; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In order for the logs to work across multiple windows on react-native web we need to use some sort of storage solution like localStorage
mainWindow.webContents.once('dom-ready', () => { | ||
// Only keep the current session in the logs | ||
mainWindow.webContents.executeJavaScript("localStorage.setItem('logs', '[]')"); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to reset localStorage logs on launch to ignore the logs from the previous session
"react-native": "0.76.1", | ||
"react-native-macos": "0.76.0", | ||
"react-native-mmkv": "^2.10.2", | ||
"react-native-svg": "15.8.0", | ||
"react-native-url-polyfill": "^2.0.0", | ||
"react-native-vector-icons": "^9.2.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no longer used
"@fluentui/react-progress": "^9.1.90", | ||
"@fluentui/react-provider": "^9.18.0", | ||
"@fluentui/react-switch": "^9.1.97", | ||
"@fluentui/react-theme": "^9.1.22", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
latest release of @fluentui/react-components
is currently broken so we need to use the individual packages directly
b4d0d5c
to
cbfa3c3
Compare
e5a483a
to
5619f72
Compare
5619f72
to
539eb94
Compare
Why
Orbit dependencies are getting quite outdated
How
Test Plan
Run menubar locally on macOS