Skip to content

Table(react-aria-components): How to render <Cell/> conditionally based on external state? #4416

Answered by LFDanLu
jaknas asked this question in Q&A
Discussion options

You must be logged in to vote

I believe this behavior is due to how the collection caches the children. One way to forcibly rerender the Cell's content is via context like so: https://codesandbox.io/s/delicate-violet-vmnnie?file=/src/App.js.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
4 replies
@devongovett
Comment options

@jaknas
Comment options

@jaknas
Comment options

@LFDanLu
Comment options

LFDanLu Apr 25, 2023
Collaborator

Answer selected by jaknas
Comment options

You must be logged in to vote
3 replies
@snowystinger
Comment options

@clearly-outsane
Comment options

@snowystinger
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants