Questions tagged [rerender]

453 questions
2
votes
2 answers

React rerender only one child

in my form i have a few dropdown components. Whenever first dropdown option changes i want to update props for the second dropdown and rerender it. My code looks like this handleProjectChange(option) { //this.setState({ selectedProject: option…
Evžen Horvat
  • 47
  • 2
  • 6
2
votes
1 answer

AngularJS multiple routes with same template shouldn't rerender

I have several views that use the same template, only the number of route params is different, how can I set it up so that the view doesn't get rerendered every time the route changes, tried with reloadOnSearch: false, but it didn't work for some…
alpar
  • 1,577
  • 1
  • 10
  • 7
2
votes
0 answers

JSF re-render issue in select one menu

I have this piece of code for radio button selection in my jsp page :
Rithik_Star
  • 651
  • 5
  • 14
  • 39
2
votes
4 answers

Absolute reRendering using RichFaces

My problem is that RichFaces reRender does not work 'under' the current element in the element tree; only upper elements get rerendered. Is there any way to access lower elements with AJAX? Any help would be appreciated! Daniel EDIT I edited this…
Daniel Szalay
  • 4,041
  • 12
  • 57
  • 103
2
votes
2 answers

Rerender rich:extendedDataTable upon another table's filter event

I have two rich:extendedDataTables in my page. One is a "master", the other one is a "slave" in the sense that data in the slave is dependent on data in the master. The master has filterBy set up for each of its columns. I want to be able to…
genchev
  • 102
  • 1
  • 10
2
votes
1 answer

rerender part of rich:popupPanel

I'm working with: - RichFaces 4.2.2 - Mojarra 2.1.14 Lets look at simple code below:
Hubert
  • 1,125
  • 5
  • 17
  • 36
1
vote
1 answer

h:inputText double whitespace

I have an field in my JSF page and I registered an entity with the name having double whitespace in it. Example: Black Coffee The problem is when the page is re-rendered and the program makes a comparison between the value in the…
Israel Zinc
  • 2,713
  • 2
  • 18
  • 30
1
vote
1 answer

Salesforce (Visualforce): Rerender - pull values from page, not the record?

I'm stuck on my rendered argument here - I'm fairly positive i'm pulling values from the record itself and not from the visualforce page. When I change the value (are_you_kp__c) from the record to a "No" - the pageblocksection shoud render, but for…
tsalb
  • 177
  • 2
  • 4
  • 10
1
vote
1 answer

How to ajax render only the inputs instead of the whole form?

I have a form in JSF 2.0 with a lot of text (labels) and checkboxes. The text never get updated upon submit, but the checkbox values does. For example:
Ben
  • 10,020
  • 21
  • 94
  • 157
1
vote
0 answers

Why my React Component is in an infinite re-render loop?

Can you guys help me to solve why am i having a infinite re-render loop when I call a function of my Context that fetches API data? (Sorry about the mistakes and bad practices I may have used in my code, i'm a fresh starter on IT and…
vinigiu
  • 11
  • 1
1
vote
0 answers

can not get peer stream because of re render issue

I'm trying to create a video chat with react.js and there is an issue that I don't know how to solve. I need to save peer stream from peer.on('stream',...) when it appears, but as it appears at the second render and I set empty array as dependency…
Vahan
  • 151
  • 1
  • 1
  • 5
1
vote
2 answers

When does re-rendering actually happens?

Code: import { useState } from 'react'; export default function Counter() { const [number, setNumber] = useState(0); return ( <>

{number}

cheems
  • 164
  • 7
1
vote
1 answer

Why is my reactjs project recompiling without stop?

My problem is that the console message shown in the image is printed non-stop. When the application starts there are no messages. However, when I save some changes it starts showing console messages. I have found the component that has a problem…
1
vote
0 answers

Zustand causing rerender even when state updates to identical item

I am using zustand for some state management. I notice with zustand, that if you update a state variable, to a clone of the exact copy of that value, I get a rerender. For example: // The zustand store: export const useStore = create((set)…
Seth Lutske
  • 9,154
  • 5
  • 29
  • 78
1
vote
0 answers

How to stop the rerender of a calendar component when displaying a modal component on top of it in React?

My main page contains a calendar where you can create events. To create an event I display a modal, which causes unintentional rerender of the calendar. So this causes displaying current week in the calendar and not the week where I wanted to create…
Sabby
  • 11
  • 1