mst-query icon indicating copy to clipboard operation
mst-query copied to clipboard

Query library for mobx-state-tree

Results 10 mst-query issues
Sort by recently updated
recently updated
newest added

New helper functions that gives a you default run action: `createQueryWithRun`, `createMutationWithRun`. ```ts export const ChatQuery = createQueryWithRun('ChatQuery', { request: types.model({ id: types.string }), pagination: types.model({ offset: types.number }), data:...

For the next version of mst-query, we're planning some breaking changes to the api. After using mst-query in production and learning things about it for more than a year now,...

I recently came across this problem when I'm writing my computed value. Consider the following example, In some model, ``` import { getQueryClient } from 'contexts/StoreContext' export const SomeModel =...

`union(MstQueryRef, MstQueryRef)` ` if (Array.isArray(data[key])) { snapshot[key] = merge(data[key], typeDef.properties[key], ctx); continue; } ` should fix this (on line 47 in merge.ts)

Just wondering how can I use createMutation to achieve form validation. Ideally, I want to use the mutation model to store the field values, but I also want to be...

We can trivially expose if any query is currently in a loading state, which can be very useful to show global spinners etc.

Would be nice to build model generators based on backend schemas like graphql. We should be able to use something similar to what is being used in `mst-gql`. Generating models...

Can you add more interval fetch for query?

This is most likely an user error and will very easily lead to infinite loops.

- [ ] Documentation - [X] Release Page - [ ] Docs on mox-state-tree website