python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
FlatList inside useMemo, initalNumToRender issue
I have a FlatList inside useMemo as follows
const content = useMemo<JSX.Element>(
() =>
isLoading ? (
<Loader />
) : !alerts.length ?...
Hagai Harari
Votes: 0
Answers: 0
How to prevent rerendering of children inside List component of react-window
Problem
I'm trying to achieve a behaviour, when merely changed items of the list are being updated and rerendered with new data.
I wrote a component which is being updated when timer is off:
import { ...
Juriy
Votes: 0
Answers: 1
ref scrollIntoView does not work with behavior smooth on react
I am creating a component that will hold a dynamic list of elements and for styling reasons, I need to keep the title for each section in a sticky nav menu.
As the user scrolls up and down the list of...
Gareth Townsend
Votes: 0
Answers: 2
React re-downloads image after every render
Edit:
The reason for re-downloading of resources was related to cacheing of images - I had previously enabled Disable cache in chrome dev tools, disabling it solved the issue!
Viliam Popovec
Votes: 0
Answers: 1