generated from allen-cell-animated/github-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 1
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
refactor: Moved backdropKey
, changed store access to use inline selector pattern (state pt. 10)
#588
Open
ShrimpCryptid
wants to merge
5
commits into
refactor/zustand-state-refactor-9-config
Choose a base branch
from
zustand-state-refactor-10-cleanup
base: refactor/zustand-state-refactor-9-config
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…-state-refactor-10-cleanup
…state-refactor-10-cleanup
|
ShrimpCryptid
commented
Mar 11, 2025
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.
I decided to move backdropKey
into the DatasetSlice
because it's highly dependent on the dataset. This let me remove the dependency on BackdropSlice
.
8b43fc2
to
804fadf
Compare
Coverage Report
File Coverage
|
804fadf
to
2a23519
Compare
backdropKey
, changed store access to use inline selector patternbackdropKey
, changed store access to use inline selector pattern (state pt. 10)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
Part 10 of (12)??? for #492, "refactor state management."
This change is pretty unexciting. It moves the
backdropKey
into theDatasetSlice
which cleans up some dependencies, and also changes our state access to the inline selector pattern which is better for linting & detecting deprecated dependencies.Estimated review size: small, 10 minutes
Solution
useShallow
.backdropKey
intoDatasetSlice
, allowingDatasetSlice
to be agnostic ofBackdropSlice
.backdropKey
inBackdropSlice
to sync backdrop visibility.Steps to Verify:
(Note: there's a known bug when switching datasets/collections where the frame may be incorrect. I'm going to see if it goes away when I move more Dataset/Collection switching logic into the store.)