Questions tagged [rerender]

453 questions
-2
votes
1 answer

Using fetch in reactjs component reinitialize application (state)

After pushing submit button I use fetch button to get information about git user from git api. After information is fetched I write it to database and then setState with userIsFetched: true and then conditionally render components. The problem is…
Rinat Rezyapov
  • 437
  • 4
  • 12
-2
votes
1 answer

JSF rerender clears html code added onload

I add a checkbox in front of specific components like dropdowns on page load. When a particular dropdown on change reRenders the a4j:outputPanel which has the checkbox, the checkox disappears. Is it because of the view being created and then I have…
Suma
  • 3
  • 2
-3
votes
1 answer

React fetch side effect

My post is more of a question than a problem. In react, in order to fetch data from an API we use the hook useEffect. But why not just work with states to manage the re-renderings ? (see example bellow) import React from "react" export default…
Amine
  • 12
  • 3
1 2 3
30
31