{"action":"created","issue":{"url":"https://api.github.com/repos/kilkelly/redux-localstorage-simple/issues/7","repository_url":"https://api.github.com/repos/kilkelly/redux-localstorage-simple","labels_url":"https://api.github.com/repos/kilkelly/redux-localstorage-simple/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/kilkelly/redux-localstorage-simple/issues/7/comments","events_url":"https://api.github.com/repos/kilkelly/redux-localstorage-simple/issues/7/events","html_url":"https://github.com/kilkelly/redux-localstorage-simple/issues/7","id":298419078,"number":7,"title":"State for nested store","user":{"login":"Vadorequest","id":3807458,"avatar_url":"https://avatars2.githubusercontent.com/u/3807458?v=4","gravatar_id":"","url":"https://api.github.com/users/Vadorequest","html_url":"https://github.com/Vadorequest","followers_url":"https://api.github.com/users/Vadorequest/followers","following_url":"https://api.github.com/users/Vadorequest/following{/other_user}","gists_url":"https://api.github.com/users/Vadorequest/gists{/gist_id}","starred_url":"https://api.github.com/users/Vadorequest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vadorequest/subscriptions","organizations_url":"https://api.github.com/users/Vadorequest/orgs","repos_url":"https://api.github.com/users/Vadorequest/repos","events_url":"https://api.github.com/users/Vadorequest/events{/privacy}","received_events_url":"https://api.github.com/users/Vadorequest/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-02-19T22:37:10Z","updated_at":"2018-02-21T13:50:55Z","closed_at":null,"author_association":"NONE","body":"I have a root store called \"modules\" which contains sub modules, I wonder if I can enable only one sub module and not the whole thing, or if it works only by reducer? Which is quite a limitation in a big app. It was fine at the beginning but now ... :/"},"comment":{"url":"https://api.github.com/repos/kilkelly/redux-localstorage-simple/issues/comments/367331683","html_url":"https://github.com/kilkelly/redux-localstorage-simple/issues/7#issuecomment-367331683","issue_url":"https://api.github.com/repos/kilkelly/redux-localstorage-simple/issues/7","id":367331683,"user":{"login":"kilkelly","id":14263246,"avatar_url":"https://avatars2.githubusercontent.com/u/14263246?v=4","gravatar_id":"","url":"https://api.github.com/users/kilkelly","html_url":"https://github.com/kilkelly","followers_url":"https://api.github.com/users/kilkelly/followers","following_url":"https://api.github.com/users/kilkelly/following{/other_user}","gists_url":"https://api.github.com/users/kilkelly/gists{/gist_id}","starred_url":"https://api.github.com/users/kilkelly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kilkelly/subscriptions","organizations_url":"https://api.github.com/users/kilkelly/orgs","repos_url":"https://api.github.com/users/kilkelly/repos","events_url":"https://api.github.com/users/kilkelly/events{/privacy}","received_events_url":"https://api.github.com/users/kilkelly/received_events","type":"User","site_admin":false},"created_at":"2018-02-21T13:50:55Z","updated_at":"2018-02-21T13:50:55Z","author_association":"OWNER","body":"Hi again @Vadorequest I have been making progress with this functionality. Currently I can specify to persist a nested piece of reducer state e.g. 'ui.itemsPerPage' to persist the 'itemsPerPage' property while the rest of the 'ui' properties are not persisted. This is useful but I have run into a snag with loading the state back in from LocalStorage. Due to the way redux-localstorage-simple's API is set up, loading back in the 'ui.itemsPerPage' state from LocalStorage will initiate the 'ui' reducer with this state only. This is due to the way createStore works in Redux, you provide it with a 'preloadedState' argument and it sets this as the initial state for your reducer. In my case the 'ui.itemsPerPage' forms the entire initial state for the reducer leaving other properties in the reducer without values.\r\n\r\nHere's how my API is looking currently:\r\n\r\n```\r\nsave({\r\n    states: [\"ui.itemsPerPage\"]\r\n})\r\n```\r\n\r\n```\r\nload({\r\n    states: [\"ui.itemsPerPage\"]\r\n})\r\n```\r\n\r\nDoes this make sense?"}}
{"actor":{"display_login":"kilkelly"}}