Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table rendered the same when content change dynamically #17

Open
yoavkamary opened this issue Jan 10, 2018 · 0 comments
Open

Table rendered the same when content change dynamically #17

yoavkamary opened this issue Jan 10, 2018 · 0 comments

Comments

@yoavkamary
Copy link

yoavkamary commented Jan 10, 2018

Hi,
I have a MarkdownView holding a table with content bounded to an array. When the array changes I trigger re rendering but the table's content doesn't change as expected.

I managed to fix this behavior by changing the key property on the table's Grid component,
at renders.js line 170
from
<Grid key={state.key} style={styles.table}>
to
import uuid from 'uuid';
...
<Grid key={uuid.v4()} style={styles.table}>

Does anyone has a better solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant