-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Wrong {#if} {:else} with context_overflow (this.context.length > 31) #4263
Comments
Thanks for the report! This is a strange one indeed because it requires all four of these conditions:
It boils down to missing As for your observation of dirty array, no it is a bitmask array representing 30 items per block (-1 is special reserved value). In this case, you have exactly 30 variables so it fits in a single value. |
Very curious, I don't see the use of Your failing example will work good for debugging the compiler, I just removed some of the extra text so that it is easier to put into a failing test. |
I add a failing test of hydration in forked https://github.com/warmrobot/svelte |
@alexkornitzer it'll be helpful if you could provide us a repro in the https://svelte.dev/repl |
Let me see if I can get it in the REPL, was struggling to do that earlier due the amount of complexity required to reproduce it and it seemed like the OP had identified the issue. In my code the ctx index is going above 30. Anyway let me see if I can abstract my table component into the REPL. |
@tanhauhau so I used the original example to bump the context over 30, removed a lot of the table fluff as well cause I guess at the end of the day its the same issue as above. I doubt I'll be able to hit the |
Thanks. Let me look into it |
Rapid, thanks guys, can confirm all is working now :D |
Cheers |
Thank you so much! |
Describe the bug
if
directive doesn't work as expected if context_overflow (this.context.length > 31)To Reproduce
https://svelte.dev/repl/09bca24d4cc940e38b00afe53ad3da51?version=3.17.0
Expected behavior
You should see
true
two timesInformation about your Svelte project:
Your browser and the version: (e.x. Chrome 52.1, Firefox 48.0, IE 10)
FF, Chrome
Your operating system: (e.x. OS X 10, Ubuntu Linux 19.10, Windows XP, etc)
Mac
Svelte version (Please check you can reproduce the issue with the latest release!)
3.17.0
Whether your project uses Webpack or Rollup
both reproduce bug
Severity
blocking an upgrade to Svelte with bitmasks
Additional context
Problem in this check dirty[0] it is falsy
May be dirty should be mutidimensional array? Because it is not
The text was updated successfully, but these errors were encountered: