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
If
breaks in advanced compilation
#119
Comments
@SevereOverfl0w Try adding a I'm AFK until next week friday, so can't look into this right now. If you want to dive into this issue, my suggestion is to look into places in the sablono sources where something like r0man |
Thanks for taking the time to reply to this issue, especially as you're taking some time AFK. For now I've put a |
@SevereOverfl0w I added a fix for this issue. Seems to work on your test project. Could you please try out |
Thanks for the fix, works excellently. I have a minor concern with the snapshot, you may know about it already: |
@SevereOverfl0w Thanks for the confirmation. I fixed the warning, and released this as |
I believe I have encountered a bug in Sablono. Admittedly it occurs in coordination with Om, and the bug may be further upstream.
In advanced compilation mode, shared state is lost. The shared state comes in via a reference to the parent, which is set in a dynamic variable.
It only occurs when an
if
is around afor
. Other things in place of thefor
may fail, but I'm not sure what to test with. If I have theom/build
immediately in theif
, it works okay.I have created a test case here: https://github.com/SevereOverfl0w/sablono-conditional-bug
boot dev
localhost:3000
, the "stato" isnil
and renders as a blank string""
src/index.cljs.edn
and change the optimizations to none, wait for cljs to build again, and refresh, the value from shared state becomes visible (dividita stato
)The text was updated successfully, but these errors were encountered: