Skip to content

Instantly share code, notes, and snippets.

Avatar
💿

Luke Herrington infiniteluke

💿
View GitHub Profile
@infiniteluke
infiniteluke / SpraypaintFeedbackPost.md
Last active Mar 5, 2021
Thoughts on Spraypaint WRT MobX and API development
View SpraypaintFeedbackPost.md

My feelings about Spraypaint, our js ORM for the property API, can be summed up by a quote from its docs:

You may have encountered state management libraries like Flux, Redux or Vuex. These are fantastic libraries, but their usefulness is lessened with Spraypaint. As a full-fledged model layer, Spraypaint manages state for you, automatically.

reference

tl;dr

Spraypaint is very powerful but wants to be more than we use it for. In order to realize the full power of spraypaint, one must adopt/hack parts of it that overlap with Mobx's responsibilities.

To explain this pain, I'll show a basic flow of using spraypaint with mobx to CRUD:

View keybase.md

Keybase proof

I hereby claim:

  • I am infiniteluke on github.
  • I am infiniteluke (https://keybase.io/infiniteluke) on keybase.
  • I have a public key whose fingerprint is 0694 362C 0C86 AC0E 8ED5 F653 3E87 B865 384E A805

To claim this, I am signing this object: