{"action":"created","issue":{"url":"https://api.github.com/repos/kadirahq/mantra/issues/141","repository_url":"https://api.github.com/repos/kadirahq/mantra","labels_url":"https://api.github.com/repos/kadirahq/mantra/issues/141/labels{/name}","comments_url":"https://api.github.com/repos/kadirahq/mantra/issues/141/comments","events_url":"https://api.github.com/repos/kadirahq/mantra/issues/141/events","html_url":"https://github.com/kadirahq/mantra/issues/141","id":140961672,"number":141,"title":"Storing state of multiple instances of the same component","user":{"login":"tomitrescak","id":2682705,"avatar_url":"https://avatars.githubusercontent.com/u/2682705?v=3","gravatar_id":"","url":"https://api.github.com/users/tomitrescak","html_url":"https://github.com/tomitrescak","followers_url":"https://api.github.com/users/tomitrescak/followers","following_url":"https://api.github.com/users/tomitrescak/following{/other_user}","gists_url":"https://api.github.com/users/tomitrescak/gists{/gist_id}","starred_url":"https://api.github.com/users/tomitrescak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomitrescak/subscriptions","organizations_url":"https://api.github.com/users/tomitrescak/orgs","repos_url":"https://api.github.com/users/tomitrescak/repos","events_url":"https://api.github.com/users/tomitrescak/events{/privacy}","received_events_url":"https://api.github.com/users/tomitrescak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2016-03-15T12:43:00Z","updated_at":"2016-03-17T01:33:09Z","closed_at":null,"body":"In mantra, the proposed way of storing the state is in the LocalState. This is great if I have a single component per page. But what if I have several instances of the same component on the page? What would you propose is the best way of storing the component state and react to its changes? Please do not recommend redux, I'm interested in native Meteor way. Thanks for any advice! "},"comment":{"url":"https://api.github.com/repos/kadirahq/mantra/issues/comments/197638491","html_url":"https://github.com/kadirahq/mantra/issues/141#issuecomment-197638491","issue_url":"https://api.github.com/repos/kadirahq/mantra/issues/141","id":197638491,"user":{"login":"tomitrescak","id":2682705,"avatar_url":"https://avatars.githubusercontent.com/u/2682705?v=3","gravatar_id":"","url":"https://api.github.com/users/tomitrescak","html_url":"https://github.com/tomitrescak","followers_url":"https://api.github.com/users/tomitrescak/followers","following_url":"https://api.github.com/users/tomitrescak/following{/other_user}","gists_url":"https://api.github.com/users/tomitrescak/gists{/gist_id}","starred_url":"https://api.github.com/users/tomitrescak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomitrescak/subscriptions","organizations_url":"https://api.github.com/users/tomitrescak/orgs","repos_url":"https://api.github.com/users/tomitrescak/repos","events_url":"https://api.github.com/users/tomitrescak/events{/privacy}","received_events_url":"https://api.github.com/users/tomitrescak/received_events","type":"User","site_admin":false},"created_at":"2016-03-17T01:33:09Z","updated_at":"2016-03-17T01:33:09Z","body":"I tried to apply the above mentioned solution to this repo https://github.com/tomitrescak/mantra-sample-blog-app but I keep running in circles. My brain capacity just does not seem sufficient to solve this in a nice matter. How do you keep tracking of changes on each individual line? Would anyone find time to propose a Mantra-compatible implementation of this problem? Possibly we could make it as a part of the sample app as it deals with a common patttern IMHO."}}