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
Hey @capaj,
thanks for providing this useful helper.
I just used it for the first time and did a mistake, that I suppose is quite common: then and catch props are functions returning some React node. The pending prop instead is supposed to be a React node, not a function.
I get that there is no argument to pass to pending, but it would be easier to use if they would all just take a function.
Cheers
The text was updated successfully, but these errors were encountered:
Hey @andywer thanks for using it! I will make it so that you can use both.
I usually just put some loading spinner into pending so that's why there wasn't an option to put a whole function in. I will add just for the sake of consistency.
Hey @capaj,
thanks for providing this useful helper.
I just used it for the first time and did a mistake, that I suppose is quite common:
then
andcatch
props are functions returning some React node. Thepending
prop instead is supposed to be a React node, not a function.I get that there is no argument to pass to
pending
, but it would be easier to use if they would all just take a function.Cheers
The text was updated successfully, but these errors were encountered: