-
Notifications
You must be signed in to change notification settings - Fork 18
refactor: Move logEventNum update handling from AppController to viewStore; Split viewStore into slices. #316
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
Changes from all commits
6986c36
73d20e0
5fea528
6ea6074
589b114
7911caf
c0fe6ad
5084b21
1bfbfbe
92bf12c
0d96f19
11b25f2
745e75d
b4cf71a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -262,8 +262,8 @@ const Editor = () => { | |
return; | ||
} | ||
updateWindowUrlHashParams({logEventNum: newLogEventNum}); | ||
const {setLogEventNum} = useViewStore.getState(); | ||
setLogEventNum(newLogEventNum); | ||
const {updateLogEventNum} = useViewStore.getState(); | ||
updateLogEventNum(newLogEventNum); | ||
}, []); | ||
Comment on lines
264
to
267
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Same redundancy as in Result.tsx
Apply the same one-liner fix as suggested for 🤖 Prompt for AI Agents
|
||
|
||
// Synchronize `beginLineNumToLogEventNumRef` with `beginLineNumToLogEventNum`. | ||
|
Uh oh!
There was an error while loading. Please reload this page.