Skip to content

When to use snap and when to use state? #590

Closed Answered by beilo
beilo asked this question in Q&A
Discussion options

You must be logged in to vote

// store/step-parser
export const stepParser = proxy(new StepParser());
// store/index
export const store = proxy({
  stepParser,
  progressControl,
});

When I use class, why does this have a proxy object and a class object?

Replies: 2 comments 17 replies

Comment options

You must be logged in to vote
6 replies
@dai-shi
Comment options

@beilo
Comment options

@beilo
Comment options

@dai-shi
Comment options

@beilo
Comment options

Comment options

You must be logged in to vote
11 replies
@dai-shi
Comment options

@beilo
Comment options

@beilo
Comment options

@dai-shi
Comment options

@beilo
Comment options

Answer selected by beilo
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