Is chat or notification suitable for SWR? #2227
-
Hi, I'm thinking of near-realtime system like chat app or notifications button on Nextjs. I am saying "near-realtime" in that I'm okay with several minutes of time lag. I'm this situation, is is a possible idea for using SWR? I'm new to SWR so I would like some broad opinions. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes it is a possible idea you can do this by setting revalidations options according to your need and mutating the data locally. But if doesn't fulfill your need you can go for firebase's realtime databases. |
Beta Was this translation helpful? Give feedback.
@KeisukeNagakawa
Yes it is a possible idea you can do this by setting revalidations options according to your need and mutating the data locally.
But if doesn't fulfill your need you can go for firebase's realtime databases.