You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This has an unfortunate side effect of creating a race condition between any other imperative code (e.g. a Canvas rendering component) that may want to read the current CSS variables. This code cannot run before the code above or it will read previous/stale values.
We should refactor this code to declaratively share theme variables to its subtree, e.g.:
functionThemeProvider({ value, children }){// ...return(<ThemeContext.Providervalue={theme}><divstyle={{'--color-attribute-name': '#ef6632','--color-attribute-name-not-editable': '#23272f',// ...}}>{children}</div></ThemeContext.Provider>);}
I've added the "good first issue (taken)" label so that others will know not to start work on the issue. If you change your mind about the issue, no worries! Just let me know so that I can remove the label and free it up for someone else to claim.
Activity
houssemchebeb commentedon Jul 16, 2021
Hi @bvaughn, can i take this ?
bvaughn commentedon Jul 17, 2021
This issue is all yours @houssemchebeb 😄
I've added the "good first issue (taken)" label so that others will know not to start work on the issue. If you change your mind about the issue, no worries! Just let me know so that I can remove the label and free it up for someone else to claim.
Cheers!
houssemchebeb commentedon Jul 17, 2021
Thanks :)
NishantChandla commentedon Jul 23, 2021
@houssemchebeb Is this issue up for grabs? Do you mind if i take over
houssemchebeb commentedon Jul 23, 2021
@NishantChandla I am already working on this issue sorry