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

added component ids #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

added component ids #2

wants to merge 2 commits into from

Conversation

mjp0
Copy link

@mjp0 mjp0 commented Jul 20, 2014

A quick hack to make this work with multiple components using same named state variables. There's also a new variable called saveStates where you can store an array of state variable names you want to save.

...
getInitialState: function(){
   return {elems: 0, items: {}, }
},
saveStates: ['elems'],
addE: function(){
...
})

@mjp0
Copy link
Author

mjp0 commented Jul 22, 2014

https://github.com/zero-/jshistory_react_mixin/commit/3cdae581c1b78c3df0cd61b4d0bd9f08b6a5d99f I noticed that it still didn't work with multiple components and was able to store one 1 component state at the time so here's a fix that enables multiple states.

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.

1 participant