{"action":"closed","issue":{"url":"https://api.github.com/repos/ClickSimply/Nano-SQL/issues/34","repository_url":"https://api.github.com/repos/ClickSimply/Nano-SQL","labels_url":"https://api.github.com/repos/ClickSimply/Nano-SQL/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/ClickSimply/Nano-SQL/issues/34/comments","events_url":"https://api.github.com/repos/ClickSimply/Nano-SQL/issues/34/events","html_url":"https://github.com/ClickSimply/Nano-SQL/issues/34","id":316232569,"number":34,"title":"Really weird behaviour, perhaps caching?","user":{"login":"plentylife","id":31143124,"avatar_url":"https://avatars2.githubusercontent.com/u/31143124?v=4","gravatar_id":"","url":"https://api.github.com/users/plentylife","html_url":"https://github.com/plentylife","followers_url":"https://api.github.com/users/plentylife/followers","following_url":"https://api.github.com/users/plentylife/following{/other_user}","gists_url":"https://api.github.com/users/plentylife/gists{/gist_id}","starred_url":"https://api.github.com/users/plentylife/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plentylife/subscriptions","organizations_url":"https://api.github.com/users/plentylife/orgs","repos_url":"https://api.github.com/users/plentylife/repos","events_url":"https://api.github.com/users/plentylife/events{/privacy}","received_events_url":"https://api.github.com/users/plentylife/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-04-20T11:34:02Z","updated_at":"2018-04-20T14:50:18Z","closed_at":"2018-04-20T14:50:18Z","author_association":"NONE","body":"I'm using nanosql in my project to create a library that I then include into a different project.\r\n\r\nWhen I do the tests on my library everything works fine. But when I include it into the other project there's this really weird issue. The setup is as follows:\r\n\r\n- I use react-nanosql to react to `onChange`\r\n- I have a table TABLE with COLUMN with a single row\r\n- Within `onChange` I use a `select` query to get the new value\r\n- The COLUMN value in that row starts of with 0\r\n\r\nWhen I update the row, I can see a `console.log` showing that COLUMN has been changed to 1\r\nThe event passed into `onChange` is showing the same, with `query.state` being `complete`\r\nBut the `select` within the `onChange` is showing the old value! It still shows 0!\r\n\r\nThis is where it gets really weird.\r\nIf the mode is set to TEMP everything works.\r\nIf the mode is set to PERM, but I'm testing just my library everything works.\r\n\r\nThe only time this doesn't work, is when I use the library within the other project, and the mode is PERM.\r\n\r\nThis is very hairy.\r\n\r\nPS. The other project uses `redux-persist` with `localforage`\r\n\r\n"}}
{"actor":{"display_login":"plentylife"}}