Questions tagged [rerender]

453 questions
1
vote
1 answer

React Context old state value in api call

I have a component which represents a page. This page has a form. Submitting that form sets the new state in context and uses this new state in the api call. The problem is that old value of the state is visible in api call. Code structure looks…
AdamKniec
  • 1,607
  • 9
  • 25
1
vote
0 answers

React - Re-Rendering getting slow on each action in a table

I have a component that will load a table with almost 300 rows and each row will have action items like verified / unverified, when we click on any action I'm updating the respective status and updating the state to re-render the component but each…
1
vote
1 answer

How do you pass different props to different child components in a parent component?

I'm trying to understand the rendering in ReactJS. I'm following this tutorial from YouTube, but I want a better grasp on the subject. The video explains that if you pass down the child component Then it will trigger a render of the parent…
Joe
  • 1,076
  • 3
  • 10
  • 17
1
vote
0 answers

React beautiful DND rerenders on drop

I am using react-beautiful-dnd to handle drag and drop operations in my application. I allow users to have youtube videos, and let them reorder them. I've extracted the logic to this codesandbox All code:…
1
vote
1 answer

Does updating cause svelte components to rerender?

When the lifecycle function(lets say afterUpdate()) in a Svelte component gets invoked. Does it cause the component to rerender? For example