Skip to content

add eslint rule #93

@jason89521

Description

@jason89521

Which function need a rule:

  • useHydrate: should use the serverStateKey when using model.mutate
  • useAccessor: the props or state in getSnapshot function should also appear in the accessor creator
  • useModel: the getSnapshot function should be memoized by useCallback

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions