Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New posts not shown in calendar viewmode #240

Closed
KevinTriplett opened this issue Feb 8, 2025 · 2 comments
Closed

New posts not shown in calendar viewmode #240

KevinTriplett opened this issue Feb 8, 2025 · 2 comments
Assignees

Comments

@KevinTriplett
Copy link
Contributor

When adding a new post, they show in all viewmodes except calendar, until the page is refreshed.

It may be because in Stream.js for all viewmodes except Calendar, posts iteratively creates a component. In Calendar viewmode, posts are passed to the component where the iteration happens based on the calendar mode (month, week, day).\

I need a second pair of eyes looking at this, to fix it.

@KevinTriplett
Copy link
Contributor Author

I've tracked it down to this useSelector not firing:

const postsSelector = useSelector((state) => getPosts(state, fetchPostsParam))

This affects all viewmodes. The fetchPostsParam is modified but postsSelector is not updated.

@KevinTriplett
Copy link
Contributor Author

Closing this -- the shift from orm to Urql should address this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants