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
Do you want to request a feature or report a bug?
Feature
What is the current behavior?
The package simple-cache-provider does not presently provide hooks to understand when we've pulled a resource for the first time, hit the cache, or dropped something from the cache due to MAX_SIZE.
Due to this, tools such as react-devtools cannot provide an interface around our cached resources which makes debugging / inspection harder.
What is the expected behavior?
It would be great if there was a way to expose callbacks / events for when the cache resource has resolved. An idea would be to fire these callbacks / events in the existing switch statement in read / preload if we are in __DEV__ mode.
With this information we could have a "redux-devtools"-esque interface to better understand where our data is coming from and when we're hitting the cache in dev mode.
Tools like this would also be useful to people new to the Suspend API to visually see their resources transition between the various record states.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution.
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!
This topic originally came up in a
react-devtools
discussion: facebook/react-devtools#1099 (comment).Do you want to request a feature or report a bug?
Feature
What is the current behavior?
The package
simple-cache-provider
does not presently provide hooks to understand when we've pulled a resource for the first time, hit the cache, or dropped something from the cache due toMAX_SIZE
.Due to this, tools such as
react-devtools
cannot provide an interface around our cached resources which makes debugging / inspection harder.What is the expected behavior?
It would be great if there was a way to expose callbacks / events for when the cache resource has resolved. An idea would be to fire these callbacks / events in the existing switch statement in
read
/preload
if we are in__DEV__
mode.With this information we could have a "redux-devtools"-esque interface to better understand where our data is coming from and when we're hitting the cache in dev mode.
Tools like this would also be useful to people new to the Suspend API to visually see their resources transition between the various record states.
The text was updated successfully, but these errors were encountered: