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
Which function need a rule:
useHydrate: should use theserverStateKeywhen usingmodel.mutateuseAccessor: the props or state ingetSnapshotfunction should also appear in the accessor creatoruseModel: thegetSnapshotfunction should be memoized byuseCallback