Skip to content
Discussion options

You must be logged in to vote

Yeah.

// not recommended, but possible
export const useFooStore = create(...);
const savedSetState = useFooStore.setState;
useFooState.setState = ...;

// recommended, straightforward and less confusing
export const useFooStore = create(...);
export const modifiedSetState = ...;

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@hooooooouzx
Comment options

@dai-shi
Comment options

Answer selected by hooooooouzx
@hooooooouzx
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants