Comments (3)
I think we should preserve the Svelte 4 behavior in legacy mode but introduce the more strict behavior in runes mode (so that we can eventually remove the logic of reordering them)
from svelte.
This issue can be boiled down to if the order of @const
tag declarations now matter in Svelte 5 and if it's an intended breaking change:
from svelte.
Svelte4 had too much magic. 😁
There's a third option which is requiring an additional flag for this logic (if it's primarily an issue for library-generated code, since client code can always reorder easily):
Pro
- encourages library developers to support the new rules (rather than tell users to apply the flag), and at the same time
- unblocks the rest of the transition of code to runes for code reliant on broken libraries
Con
- now users will have this flag in their code.
- more compiler modes to test.
- more to document.
from svelte.
Related Issues (20)
- Svelte 5: Chained `$derived`s don't update sometimes HOT 2
- Svelte 5: behavior of svelte-ignore is different between Svelte 4 and Svelte 5 HOT 3
- Svelte 5: faulty ownership_invalid_binding errors are back, inside #if blocks
- Svelte 5: flip animation breaks entry transition with delay HOT 1
- Svelte 5: ComponentProps does not correctly resolve conditional property types HOT 4
- A rare bind value bug sets the value to null when it is not bind in parent HOT 3
- Error de CORS en Rutas api de Sveltekit HOT 1
- Svelte 5: `<img loading="lazy">` loads eagerly in Firefox (regression) HOT 5
- Svelte 5: Two-way-binding of superforms $formData is broken if passed as arg in render snippet HOT 3
- Svelte 5: Increment(++) and Decrement(--) operator output is incorrect
- Svelte 5: differentiate between supported and unsupported TypeScript features HOT 2
- Svelte 5: Allow `$state` in object literals HOT 1
- Svelte 5: Mutating property of passed in object locks up browser HOT 13
- Svelte 5 migrate function doesn't preserve JSDoc annotation for props
- Svelte 5 Hydration mismatch (with adapter-static) HOT 13
- Svelte 5: Spread props from libraries conflict/overwrite each other's handlers HOT 4
- Svelte 4: Changing array does not reavaluate HOT 5
- svelte 5 : with reactive set `has` invokes in effects where it shouldn't HOT 4
- Svelte 5: Actions and on: directives don't respect the order they are listed HOT 4
- Unowned derived signal, unnecessary transitive invalidation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svelte.