0.1.0-beta.8 • Published 10 months ago

mobx-depot v0.1.0-beta.8

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

mobx-depot

View documentation

Scaffold MobX-powered models, queries and mutations with your GraphQL schema.

What do you get?

  • Strictly-typed Model, Query and Mutation classes auto-generated via introspection
  • A RootStore to reconcile data from your API, preserving existing instances along the way
  • A place to add your own logic to models that won't get overwritten by code generation
  • Reactivity powered by MobX
  • A UI framework-agnostic solution, though first-class support for React is provided via hooks

Which libraries is mobx-depot adjacent to?

  • Apollo client
  • mst-gql
  • ...

Depending on the structure of your schema, you could also consider local state management as a target. You could theoretically generate models using a schema without needing to interact with an external API at all. In this case any local state management library should be shaking in their boots!

  • Redux
  • Zustand
  • The other 10,000+ libraries out there

Expect trouble

Until this library is published on NPM with version >=0.1.0, expect trouble. There are many "pre-release" issues that still need to be tackled and tests to be written before I recommend usage. That being said, mobx-depot may "just work" for you.

If you do run into any bugs, please create an issue!

If you're interested in contributing, hit me up on Twitter. I won't have any formal guidelines for contributing until after the first release, as I want to ensure my vision for the library is clear before I start accepting PRs. Though I'm totally up to review some PRs for bug fixes!

Limitations

As is common in early development, there are limitations that will be addressed in the future:

  • Only TypeScript supported
  • GraphQL Subscriptions are not supported

Looking for the docs? View documentation

0.1.0-beta.3

10 months ago

0.1.0-beta.2

10 months ago

0.1.0-beta.5

10 months ago

0.1.0-beta.4

10 months ago

0.1.0-beta.1

10 months ago

0.1.0-beta.0

10 months ago

0.1.0-beta.7

10 months ago

0.1.0-beta.6

10 months ago

0.1.0-beta.8

10 months ago

0.0.73

10 months ago

0.0.72

12 months ago

0.0.70

1 year ago

0.0.71

1 year ago

0.0.62

1 year ago

0.0.63

1 year ago

0.0.64

1 year ago

0.0.65

1 year ago

0.0.66

1 year ago

0.0.67

1 year ago

0.0.68

1 year ago

0.0.69

1 year ago

0.0.60

1 year ago

0.0.61

1 year ago

0.0.59

1 year ago

0.0.51

1 year ago

0.0.52

1 year ago

0.0.53

1 year ago

0.0.54

1 year ago

0.0.55

1 year ago

0.0.56

1 year ago

0.0.57

1 year ago

0.0.58

1 year ago

0.0.50

1 year ago

0.0.49

1 year ago

0.0.48

1 year ago

0.0.46

1 year ago

0.0.45

1 year ago

0.0.44

1 year ago

0.0.43

1 year ago

0.0.42

1 year ago

0.0.41

1 year ago

0.0.40

1 year ago

0.0.39

1 year ago

0.0.37

1 year ago

0.0.36

1 year ago

0.0.35

1 year ago

0.0.34

1 year ago

0.0.33

1 year ago

0.0.32

1 year ago

0.0.31

1 year ago

0.0.30

1 year ago

0.0.29

1 year ago

0.0.28

1 year ago

0.0.27

1 year ago

0.0.26

1 year ago

0.0.25

1 year ago

0.0.24

1 year ago

0.0.23

1 year ago

0.0.22

1 year ago

0.0.21

1 year ago

0.0.20

1 year ago

0.0.19

1 year ago

0.0.18

1 year ago

0.0.17

1 year ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago