Xuan
Xuan
In most case, developers don't need to specify `transform` or `getId` when creating pagination adapter. If we provide a generic pagination adapter, it may reduce the code that developers need...
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...
My current idea is to hydrate based on different accessors. The API might look like this: ```javascript const postAdapter = createPaginationAdapter({}); const postModel = createModel(initialModel); const getPostById = postModel.defineAccessor('normal', {...
Developers may need to specify some variables for how to update the state. For example, a `refresh` flag means that the whole pagination need to be refresh. However, `refresh` is...
Like React query's `useMutation`. This feature is not the most urgent and will likely be implemented after the accessor API stabilizes.
There are two case of the race condition. - The response returned from request is after the user mutating the model. - Suppose `useInfiniteFetch` fetch a post list with id...
## Why close #749 ## What Support `preserve-comments-position` for the fix subcommand. ## How 1. Add `preserve-comments-position` in the command arguments parser, and the `FixOptions` struct. 2. If `preserve-comments-position` is...
Updated the function in the comment to 'fromSafePromise'.