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
In this part, I found a difference from the return value of other hooks.
For example, the return value of the useStep in the usehooks-ts package is in the following format.
For code consistency, I propose to consistently match the return value format of these hooks.
Or, is there a reason why the return value format is different for each hooks?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The return value of the
useCounter
is as shown in the code below.In this part, I found a difference from the return value of other hooks.
For example, the return value of the
useStep
in the usehooks-ts package is in the following format.I think I can change the useCounter like useStep. Please refer to the code below.
For code consistency, I propose to consistently match the return value format of these hooks.
Or, is there a reason why the return value format is different for each hooks?
Thank you for reading my simple question!
Beta Was this translation helpful? Give feedback.
All reactions