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

Bug: Styles don't update immediately #641

Closed
hgzimmerman opened this issue Sep 15, 2019 · 0 comments · Fixed by #698
Closed

Bug: Styles don't update immediately #641

hgzimmerman opened this issue Sep 15, 2019 · 0 comments · Fixed by #698

Comments

@hgzimmerman
Copy link
Member

hgzimmerman commented Sep 15, 2019

Description

**I'm submitting a bug report

When styles change in a view function, they take 2 updates to appear in the DOM.
An example project demonstrating this behavior in a minimal fashion can be found here:
https://github.com/hgzimmerman/yew_styles_dont_apply_minimal_example

Expected Results

Updating styles should appear immediately.

Actual Results

A function returning true for its ShouldRender output needs to run twice to cause the styles to update.
Only running it once will not cause an update.

Context (Environment)

  • rustc: 1.37.0 (eae3437df 2019-08-13)
  • yew: > v0.8.0
  • target: wasm32-unknown-unknown
  • cargo-web: 0.6.26

  • browser if relevant
    Firefox, Chromium (probably not relevant)

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

Successfully merging a pull request may close this issue.

2 participants