facebook / facebook/relay

[Modern] How to use useSubscribeToInvalidationState to react to new items being added to a list

Open
#3,128 4 comments 0 reactions 0 assignees View on GitHub
wontfix
Dominant language
Rust
Stars
19k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

Hello,

I did first check the recommended Reactiflux discord, in fact the relay channel was deleted due to not being used, not a great first sign.

As per documentation "Just marking the store or records as stale will cause queries to be refetched they next time they are evaluated", and also as the documentation points out, this doesn't work in some use cases. My specific one is just a list of things, creation of a new thing happens on the same screen. The useSubscribeToInvalidationState doesn't seem to suited for this use case.

What would be a recommended way?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.