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
The src/utils folder in the dapp currently houses important functions for various operations. They are very delicate and easy to break, considering none of them have access to state. Each time one of them is used, any states or functions they need that are outside the scope of their file have to be passed to them. This isn't a very reactive approach and can lead to memory leaks, which is why they have to be carefully and precisely used.
Each function, although, can be used inside of a react hook in a much more elegant way. Converting all of the utilities to hooks would make the utilities easier to use and would result in a more fluent and fast application.
The text was updated successfully, but these errors were encountered:
The src/utils folder in the dapp currently houses important functions for various operations. They are very delicate and easy to break, considering none of them have access to state. Each time one of them is used, any states or functions they need that are outside the scope of their file have to be passed to them. This isn't a very reactive approach and can lead to memory leaks, which is why they have to be carefully and precisely used.
Each function, although, can be used inside of a react hook in a much more elegant way. Converting all of the utilities to hooks would make the utilities easier to use and would result in a more fluent and fast application.
The text was updated successfully, but these errors were encountered: