redux-crud-store: Don't set collection to empty array when updating a record.
Whenever updating a record, selectCollection always responds an empty array and it makes my view’s empty too. What do you think if you make some changes (the record will have isUpdating or isLoading, …) so that selectCollection will give back an array
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 17 (17 by maintainers)
Commits related to this issue
- UPDATE action doesn't need to change fetchTime. fixes #30 — committed to devvmh/redux-crud-store by devvmh 8 years ago
- Merge pull request #31 from uniqueway/feature/lazy-update UPDATE action doesn't need to change fetchTime. fixes #30 — committed to devvmh/redux-crud-store by devvmh 8 years ago
ok try installing with this package.json line. I’m not really confident it’ll work though…
that’s interesting. 5.0.0 should remove the need for checking if it’s an array or a { data: [ … ] }. But again, I’ve got the same problem on my machine.
I don’t think I’m going to be able to solve this in the next ten hours though. Maybe I can push a workaround to a branch and you can install from Github for the moment.