-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
fix: Creating multiple new notebooks leading to an issue #19077
Conversation
📸 UI snapshots have been updated2 snapshot changes in total. 0 added, 2 modified, 0 deleted:
Triggered by this commit. |
Size Change: +174 kB (+9%) 🔍 Total Size: 2.01 MB
|
], | ||
}), | ||
actions({ | ||
selectNotebook: (id: string, autofocus: EditorFocusPosition | undefined = undefined) => ({ id, autofocus }), | ||
selectNotebook: (id: string, options: { autofocus?: EditorFocusPosition; silent?: boolean } = {}) => ({ |
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.
silent
as a prop name confused me for a little bit. Wonder if there's something else we could call it or add a description for what it achieves. Maybe open
or more explicitly openInSidePanel
Problem
We create a new notebook on the scene mounting if the id is "new" but this doesn't work when going back and forth as the scene gets cached by some other app logic I'm not fully up to speed with.
Changes
TODO
👉 Stay up-to-date with PostHog coding conventions for a smoother review.
How did you test this code?