page refresh problem

UI Components for React
Post Reply
akhfaern
Posts: 1
Joined: 12 Jun 2021, 22:54

12 Jun 2021, 23:07

hello everyone. i am using sigma as a template. actually i am using a simple logic. when component loaded from navigation menu, i am fetching some data from api and updating states with this data. and states are connected to some inputtext, dropdown and selectbutton. everything working just fine when navigated from menu. but when the same page refreshed even though fetch and all the state updates working fine dropdown and selectbutton does not become selected. i checked states are all updated and inputtext show the text but dropdown and selectbutton does not. any idea how i can solve this issue?

working:
navigation clicked -> component loaded -> useEffect fetch data -> state updated -> dropdown and selectbutton become selected and updated.

not working:
page refreshed -> component loaded -> useEffect fetch data -> state updated -> inputtext updated and show text but dropdown and selectbutton does not.

thx.

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 10 guests