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
Reading through the documentation for PromiseState i noticed that there is a refresh() static method but not an instance method. I think adding it as an instance method would be hugely helpful to a lot of people. It would reduce the above to:
PromiseState is only a representation of promise state, its methods don't actually do anything but synchronously make more PromiseStates. Not that the idea is bad or your gripe is unjustified, just that PromiseState isn't the right place for it.
I personally just write the code when I need it. If you're really lazy you could write a helper function :)
I'm new to the library but i've been using the manual refresh pattern from the readme a lot because each of my screens have a refresh button.
Reading through the documentation for PromiseState i noticed that there is a refresh() static method but not an instance method. I think adding it as an instance method would be hugely helpful to a lot of people. It would reduce the above to:
and then call the refresh using
props.userFetch.refresh()
Am i missing something? It doesn't look like anyone has mentioned it before, do they just write the extra code?
The text was updated successfully, but these errors were encountered: