nicklandgrebe / active-resource.js

ActiveResource.js - API resource relational mapping in JavaScript
https://active-resource.js.org
MIT License
133 stars 20 forks source link

Change tracking with Redux / MobX #48

Closed CharlieIGG closed 5 years ago

CharlieIGG commented 5 years ago

I'm trying to directly pass and manipulate the Class Instances I get from ActiveResource in my Redux/Mobx stores, but so far I've been unable to get these libraries to observe changes and notify my subscribed React components so they re-render with the new values.

I know this issue is more related to those libraries (and I'm looking for help there), but I wanted to know if somebody here has faced the same, and if you have a solution.

I also know a possible workaround would be to keep separate track of attributes and associations using plain JS objects, but it would be wonderful to just be able to use the class instances in my stores.

CharlieIGG commented 5 years ago

Closing as I was hoping somebody on this end would have faced this issue and have some context, but that clearly is not the case, and the issue itself has more to do with MobX than ARJS