-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
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.