Closed maheshbasnet089 closed 1 year ago
Okay ☂︎
Loader is not being shown @arpan404 why is that or is it my device problem ?
@arpan404 did u implemented it in viewtext page only ? We need it in all page where there is fetching like tapshare.xyz/1234433
In these pages of code and file too
Ok
I suggest it to add at this page when it will be redesigned
I will rewrite that page within 2 days
@maheshbasnet089 a suggestion for you, don't import whole React while using builtin hooks like useState, useEffect and so on.
Don't do like this, it will hamper the performance and it's not a good code practice of React
okay @arpan404
I will rewrite that page within 2 days
Any updates @arpan404 ?
Currently, I am quite busy on something else. I will do this work when I got free time.
any updates @arpan404 ?
@arpan404 updates ?
working on it currently
@maheshbasnet089 a suggestion for you, don't import whole React while using builtin hooks like useState, useEffect and so on. Don't do like this, it will hamper the performance and it's not a good code practice of React
I dont think it hampers the performance.
If the application only uses the useState hook, importing the entire React object will include unnecessary code in your bundle, leading to a larger bundle size. So, to keep your bundle size small and improve performance, it's recommended to import only the specific hook you need.
If the application only uses the useState hook, importing the entire React object will include unnecessary code in your bundle, leading to a larger bundle size. So, to keep your bundle size small and improve performance, it's recommended to import only the specific hook you need.
As my understanding, using it like React.useState or using useState after destructuring is similar. In both way, we are using useState only from react. Found this question in stackoverflow too. https://stackoverflow.com/questions/59025940/should-i-import-usestate-and-useeffect-or-is-it-ok-to-use-react-usestate-and-rea
loader need while it is still being fetched in the code as well as file page too