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]locale with jsx in it will lead to js error #1132

Closed
justnewbee opened this issue Sep 17, 2019 · 1 comment
Closed

[Table]locale with jsx in it will lead to js error #1132

justnewbee opened this issue Sep 17, 2019 · 1 comment
Assignees

Comments

@justnewbee
Copy link

Component

Table

Reproduction link

http://riddle.alibaba-inc.com/riddles/36db2f88

Steps to reproduce

import table from fusion 1.6-1.7,<= 1.5 is fine

render a table with locale, which contains a key with jsx like below

locale: {
  empty: <span>BUGGY!!!!!!!!!</span>
}

and you will get error when rendering this table

Firefox says: 「TypeError: "$$typeof" is read-only」
Chrome says: 「Uncaught TypeError: Cannot assign to read only property '$$typeof' of object '#'」

image

image

@justnewbee
Copy link
Author

i assume this is no table bug, should be a common issue, please fix it
and you might need to re-write the whole project using ts, which might save you tons of bugs
to be honest, fusion regression bugs are too many, which gives me headache..

myronliu347 added a commit that referenced this issue Sep 18, 2019
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

2 participants