New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add data state #40
Add data state #40
Conversation
…ternal data state
@seaneking I also added the change of observe and observeState, they're a big breaking change for Simpla however - |
Yep this will have to happen after simpla-text and simpla-img are refactored later this year |
Or if it needs to happen before then we can just temp patch img and text to |
Closing this in favour of using an overall v2 branch |
Adds in the data state as per #35.
get
/set
/remove
should operate on state before touching APIget
where no data state exists should hydrate from APIsave
state should hold all data and whether they differ from local state to API statesave
method shouldset
/remove
data to API based on if changes have been made