Closed alexbehl closed 3 weeks ago
Hi, I haven't actually tested it with Svelte 5. Does it work well? Can you pls update the version in package.json as well as the release notes?
On Mon, Apr 29, 2024 at 11:47 PM Alex Behl @.***> wrote:
When using svelte 5.0.0-next, svelte-dnd-action causes a peer dependency issue. Since svelte-dnd-action appears to be compatible with svelte 5, it would be helpful to allow svelte 5.0.0-next as peer dependency.
You can view, comment on, or merge this pull request online at:
https://github.com/isaacHagoel/svelte-dnd-action/pull/567 Commit Summary
- 7112a33 https://github.com/isaacHagoel/svelte-dnd-action/pull/567/commits/7112a33ef92e8062f92d0ebe3a469530b5c53c49 allow svelte ^5.0.0-next.0 as peer dependency
File Changes
(1 file https://github.com/isaacHagoel/svelte-dnd-action/pull/567/files)
- M package.json https://github.com/isaacHagoel/svelte-dnd-action/pull/567/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519 (2)
Patch Links:
- https://github.com/isaacHagoel/svelte-dnd-action/pull/567.patch
- https://github.com/isaacHagoel/svelte-dnd-action/pull/567.diff
— Reply to this email directly, view it on GitHub https://github.com/isaacHagoel/svelte-dnd-action/pull/567, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE4OZC4RC5VLUDMFAUK4JG3Y7ZFPNAVCNFSM6AAAAABG6L4BLWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI3DSMJQGE2DEOI . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I haven't encountered any issues so far
I haven't encountered any issues so far
Trying to update now and I noticed that all my pages that have overrideItemIdKeyNameBeforeInitialisingDndZones
at the top of the +page file when DnD is used inside a child of the page are now get an error saying Uncaught Error: can only override the id key before initialising any dndzone
It worked in 4 but doesn't work after moving to 5. This is stoping me from being able to update my project to Svelte v5
hello any update on that ?
Sorry. Blocked some time to look into this tonight (Sydney time zone)
On Mon, May 6, 2024, 06:34 Ben Kuper @.***> wrote:
hello any update on that ?
— Reply to this email directly, view it on GitHub https://github.com/isaacHagoel/svelte-dnd-action/pull/567#issuecomment-2094939616, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE4OZC2TDN2ZYGTTCRKANVDZA2JVZAVCNFSM6AAAAABG6L4BLWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJUHEZTSNRRGY . You are receiving this because you commented.Message ID: @.***>
Is this ok being merged even though overrideItemIdKeyNameBeforeInitialisingDndZones
no longer works properly in v5?
@EricSSartorius sorry. I missed your original comment somehow. I didn't test this option. ideally please create an issue. When are you calling the override? Can you try importing and calling it at the top level before creating any components with dnd zones inside? it is possible that svelte 5 calls the action (which creates the first zone) before running your override
@EricSSartorius sorry. I missed your original comment somehow. I didn't test this option. ideally please create an issue. When are you calling the override? Can you try importing and calling it at the top level before creating any components with dnd zones inside? it is possible that svelte 5 calls the action (which creates the first zone) before running your override
In v4 I am calling it at the top of my component like the example in the readme. In v5 it no longer works that way. I tried throwing it in different things like $effect.pre with no luck either. It only works after page refresh. I can make an issue 👍
When using svelte 5.0.0-next, svelte-dnd-action causes a peer dependency issue. Since svelte-dnd-action appears to be compatible with svelte 5, it would be helpful to allow svelte 5.0.0-next as peer dependency.