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

Fixed: merge newly added colors into global styles #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

malincrist
Copy link
Contributor

Closes #18

When there are multiple customizable widgets on the same page that contain colors in their style definitions, they are loaded asynchronously and overwrite the colors saved in the global styles. This way, a race condition is produced, each widget overriding the other widgets' changes to the global styles and, at the end, there colors added are just from one of the widgets.

Widget1 introduces color1: after updating the styles, the list of colors contains color1.
Widget2 introduces color2: when updating the styles, the old styles (that are being currently updated) do not contain color1; after the update, global styles will only contain color2.

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

Successfully merging this pull request may close these issues.

Backfill local styles doesn't work when there are multiple widgets on the same page
1 participant