{"action":"created","issue":{"url":"https://api.github.com/repos/andpor/react-native-sqlite-storage/issues/53","repository_url":"https://api.github.com/repos/andpor/react-native-sqlite-storage","labels_url":"https://api.github.com/repos/andpor/react-native-sqlite-storage/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/andpor/react-native-sqlite-storage/issues/53/comments","events_url":"https://api.github.com/repos/andpor/react-native-sqlite-storage/issues/53/events","html_url":"https://github.com/andpor/react-native-sqlite-storage/issues/53","id":154905326,"number":53,"title":"DB changes are lost when Reload JS","user":{"login":"AleCaste","id":6316907,"avatar_url":"https://avatars.githubusercontent.com/u/6316907?v=3","gravatar_id":"","url":"https://api.github.com/users/AleCaste","html_url":"https://github.com/AleCaste","followers_url":"https://api.github.com/users/AleCaste/followers","following_url":"https://api.github.com/users/AleCaste/following{/other_user}","gists_url":"https://api.github.com/users/AleCaste/gists{/gist_id}","starred_url":"https://api.github.com/users/AleCaste/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AleCaste/subscriptions","organizations_url":"https://api.github.com/users/AleCaste/orgs","repos_url":"https://api.github.com/users/AleCaste/repos","events_url":"https://api.github.com/users/AleCaste/events{/privacy}","received_events_url":"https://api.github.com/users/AleCaste/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-15T12:03:32Z","updated_at":"2016-05-15T13:59:22Z","closed_at":null,"body":"Hello!\r\nGreat module! \r\nI have a problem when using it on android though.\r\nWhen I am on debug mode, every time I hit the \"Reload JS\" option, all the changes that I may have done to the SQLite database are lost. The packager seems to replace the database file in the www folder with the original copy of it.\r\nThis is a pain since when you are debugging you want to make changes to the DB and it is quite normal you may want those changes to be preserved on future runs.\r\nIs there a way to prevent this?\r\nPlease note that the \"close\" method is NOT being called in my case. I normally select \"Reload JS\" at different points of the execution of my app.\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/andpor/react-native-sqlite-storage/issues/comments/219287423","html_url":"https://github.com/andpor/react-native-sqlite-storage/issues/53#issuecomment-219287423","issue_url":"https://api.github.com/repos/andpor/react-native-sqlite-storage/issues/53","id":219287423,"user":{"login":"AleCaste","id":6316907,"avatar_url":"https://avatars.githubusercontent.com/u/6316907?v=3","gravatar_id":"","url":"https://api.github.com/users/AleCaste","html_url":"https://github.com/AleCaste","followers_url":"https://api.github.com/users/AleCaste/followers","following_url":"https://api.github.com/users/AleCaste/following{/other_user}","gists_url":"https://api.github.com/users/AleCaste/gists{/gist_id}","starred_url":"https://api.github.com/users/AleCaste/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AleCaste/subscriptions","organizations_url":"https://api.github.com/users/AleCaste/orgs","repos_url":"https://api.github.com/users/AleCaste/repos","events_url":"https://api.github.com/users/AleCaste/events{/privacy}","received_events_url":"https://api.github.com/users/AleCaste/received_events","type":"User","site_admin":false},"created_at":"2016-05-15T13:59:22Z","updated_at":"2016-05-15T13:59:22Z","body":"Thanks for the clarification. \r\nIt is just that sometimes you need to make modifications to the DB on debug mode, make changes to the code and reload the package wishing the data you just manipulated would still be there in order to carry on with further steps.\r\nBut well, I can also understand what the packager does and why. Sometimes is not convenient but it is the right behavior.\r\nThanks for your answer! And again, great module."}}