Skip to content
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

Closed
wants to merge 17 commits into from
Closed

Add data state #40

wants to merge 17 commits into from

Conversation

bedeoverend
Copy link
Contributor

@bedeoverend bedeoverend commented Sep 22, 2016

Adds in the data state as per #35.

  • Add data reducer state to track all simpla data
  • get / set / remove should operate on state before touching API
  • get where no data state exists should hydrate from API
  • save state should hold all data and whether they differ from local state to API state
  • save method should set / remove data to API based on if changes have been made

@bedeoverend
Copy link
Contributor Author

@seaneking I also added the change of observe and observeState, they're a big breaking change for Simpla however - simpla-img and simpla-text right now use Simpla.observe which means we couldn't merge this until all elements are ready to be upgraded. Can you see an issue with this? They'll need to be updated to use this anyway, in conjunction with moving to Polymer 2

@madeleineostoja
Copy link

Yep this will have to happen after simpla-text and simpla-img are refactored later this year

@madeleineostoja
Copy link

Or if it needs to happen before then we can just temp patch img and text to observeState (or whatever we settle on for that method name)

@bedeoverend
Copy link
Contributor Author

Closing this in favour of using an overall v2 branch

@bedeoverend bedeoverend deleted the buffer branch September 27, 2016 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants