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

hot fix not accumulating class attribute if streamed #211

Merged
merged 1 commit into from Jul 24, 2018

Conversation

cornerman
Copy link
Member

@cornerman cornerman commented Jul 21, 2018

There is a problem when we stream AccumAttrs or AccumStyles and update the data object of a vnode proxy.

For example:

      div(
        cls := "first",
        cls <-- myClasses
      )

Here, the second cls attribute stream overwrites the static cls := "first". But it should actually accumulate both classes, as it would do for two static class attributes. The same problem exists for styles.

This PR is just a hot fix for class, as it is the only default AccumAttribute we have. But this should be fixed properly in a another PR.

@cornerman cornerman merged commit b6e6d86 into outwatch:master Jul 24, 2018
@cornerman cornerman deleted the stream-accum-attr branch July 24, 2018 13:29
cornerman added a commit to cornerman/outwatch that referenced this pull request Sep 24, 2021
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.

None yet

3 participants