Getting data from calling smart contracts getter method via web3js takes 3-4 seconds .is there any Best way to show a loading spinner/gif while my React component is fetching data from smart contracts and displays it into the frontend?i am using reactjs class components.

Apr 12, 2020, 5:27 PM
Just use any loading spinner you like
But actually best way would be to write some backed to cache the data
Apr 12, 2020, 9:18 PM

© 2024 Draquery.com All rights reserved.