Replies: 1 comment 1 reply
-
|
yo, i feel u. the v5 naming shift from tbh the reason they split it is to separate the data state ( if u miss the old if u really need a single string field for downstream props, u might have to just wrap the hook and derive a custom status like |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Just curious if there was a consideration at any point towards possibly splitting the current
pendingstatus intoloadingand a fourth one denoting the inverse (isPending && !isFetching)? Maybenascentor something? Had a lot of code throughout a project that relied on the status field passed as a prop to downstream components that I was forced to completely refactor sincestatusalone could no longer reflectisLoadingas it did in the original version. At least with two distinct statuses you could cover all bases:status === 'nascent',status === 'loading',['nascent', 'loading'].includes(status). As it stands, the field has been rendered virtually useless in my project and am not even sure of its intended use case any longer over the boolean flags (isLoading,isPending, etc.).Beta Was this translation helpful? Give feedback.
All reactions