voyager icon indicating copy to clipboard operation
voyager copied to clipboard

Posts should be in redux

Open aeharding opened this issue 2 years ago • 2 comments

Because when you click a post, technically you get a new version (with potentially more votes).

The original summary feed item should get updated when this happens, because they should pull from the same data source.

aeharding avatar Jun 25 '23 05:06 aeharding

Does this refer to fetching and keeping posts/comments in the slice instead of using fetchFn functions passed from top and keeping results locally?

burakcan avatar Jun 29 '23 09:06 burakcan

Yeah. I think it's OK to keep the objects in the fetchFn for the infinite pagination, but the post component should use data in the redux store as the source of truth for render.

aeharding avatar Jun 29 '23 14:06 aeharding