-
|
Hi ! There is still a usecase I can't figure out how to do properly. I have a page where I want to display all the cars. Something that would look like this : const [cars] = useAtom(carsDataAtom);
return cars.map(car => <Car key={car.id} car={car} />)but I don't want this compontent to render everytime I make a change on a car. So my idea was to do something more like this : const [carIds] = useAtom(carIdsDataAtom);
return carIds.map(carId => <Car key={car.id} carId={carId} />)but then I don't know in the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
There are several options, but let me point a doc for now: https://jotai.org/docs/advanced-recipes/large-objects |
Beta Was this translation helpful? Give feedback.
There are several options, but let me point a doc for now: https://jotai.org/docs/advanced-recipes/large-objects