You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be helpful to introduce a new state updatedAt, which is a timestamp representing the last time we get the data from the fetcher or mutator.
Use Case
The typical use case for this feature will be showing a last refreshed time of the data in the UI which is critical for its realtimeness.
Without this new state one can only implement it with an effect hook to monitor the data change. However due to the deep comparison of SWR that doesn't work when data remains the same.
The text was updated successfully, but these errors were encountered:
It would be helpful to introduce a new state
updatedAt
, which is a timestamp representing the last time we get the data from the fetcher or mutator.Use Case
The typical use case for this feature will be showing a last refreshed time of the data in the UI which is critical for its realtimeness.
Without this new state one can only implement it with an effect hook to monitor the data change. However due to the deep comparison of SWR that doesn't work when data remains the same.
The text was updated successfully, but these errors were encountered: