Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert all utils to hooks #89

Open
keithfrazier98 opened this issue Feb 17, 2022 · 1 comment
Open

Convert all utils to hooks #89

keithfrazier98 opened this issue Feb 17, 2022 · 1 comment
Labels
dapp enhancement New feature or request

Comments

@keithfrazier98
Copy link
Contributor

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.

@keithfrazier98 keithfrazier98 added dapp enhancement New feature or request labels Feb 17, 2022
@0xaki
Copy link

0xaki commented Feb 25, 2022

dapp repo issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dapp enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants