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
As of 0.12.0 some mixins don't function as docs suggest #221
Comments
Cold you please first try to identify in which version of Rum exactly this behavior changed? There was a couple of releases after 0.11.4. Once you found that version, please try to repro the issue w/o citrus. Post your findings here, thank you. |
Both issues started in I made the following example to test the second issue: (def *count (atom 0))
(rum/defc Layout
< rum/reactive
rum/static
[]
[:div {:on-click #(swap! *count inc)}
"Clicks: " (rum/react *count)]) In the above example, the atom updates but the component doesn't show it. By mounting the component again, the atom's value is equal to the total number of clicks we expected. |
fixed in |
Awesome, thank you very much. That was quick :) |
I updated rum from
0.11.4
to0.12.2
and some mixins don't function as docs suggest.Using
rum/static
withrum/local
doesn't rerender the component when the value ofrum/local
is updated.Using both of
rum/reactive
andrum/static
indefc
causes incorrect behaviour.Steps to reproduce: Set
items
as follows and have a button to change the value of items with each click.I expect
items
to change the value on each click but the value is updated to the value of the click before the most recent one.Note: I use
[clj-commons/citrus "3.2.3" :exclusions [rum]]
which can be related to #215If this is expected behaviour, could you please clarify the documentation?
I worked around the two issues above by removing the
rum/static
but this impacts performance. Thank you in advance :)The text was updated successfully, but these errors were encountered: