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
Hello guys, recently I created and started using a function that I think can be useful as part of this library.
The utility is quite handy when working with forms and requests like PUT, PATCH, POST, DELETE, i.e., when you need to perform some action on the backend while displaying its state to the user.
StatefulFn
This utility creates a function based on the passed function that contains the execution state based on the new signal API.
Creating a stateful function
This way you can create a function whose state you are interested in:
Hello guys, recently I created and started using a function that I think can be useful as part of this library.
The utility is quite handy when working with forms and requests like
PUT
,PATCH
,POST
,DELETE
, i.e., when you need to perform some action on the backend while displaying its state to the user.StatefulFn
This utility creates a function based on the passed function that contains the execution state based on the new signal API.
Creating a stateful function
This way you can create a function whose state you are interested in:
And here's how you can use it in the template:
Let me know if you're interested and then I'll create a PR.
The text was updated successfully, but these errors were encountered: