Home ยป The Arrival of SvelteKit 2.0: Embracing Svelte 3 and its Seamless Back Navigation Capability, Without Altering the URL

The Arrival of SvelteKit 2.0: Embracing Svelte 3 and its Seamless Back Navigation Capability, Without Altering the URL

SvelteKit is a comprehensive framework for Svelte, upgraded to version 2.0 to fully support Svelte 3 and prepare for the upcoming Svelte 5 release in 2024.

While most features are geared toward supporting Svelte 5, a notable feature is the inclusion of shallow routing for history creation without page navigation. A significant use case for this feature is when a modal is displayed on a webpage. Mobile users often swipe their screens to close the modal. This new feature allows developers to add additional history when receiving the back button event or a screen swipe, effectively closing the modal.

This update brings numerous breaking changes. The development team suggests upgrading to the latest 1.x version before transitioning to Svelte 4. Afterwards, all deprecation warnings can be addressed before proceeding with the actual upgrade.

TLDR: SvelteKit is a full-fledged framework for Svelte, now at version 2.0 with complete support for Svelte 3 and readiness for the upcoming Svelte 5 release. It introduces shallow routing for seamless history creation and addresses breaking changes. Upgrade steps include transitioning to the latest 1.x version, then updating to Svelte 4 before resolving deprecation warnings.

More Reading

Post navigation

Leave a Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Unveiling the CMF Watch Pro 2 and CMF Buds Pro 2: A Glimpse into the Future of Technology and Style at a Price Tag of Over Two Thousand Baht

Windows 11 Activation Denied with Legacy Windows 7/8 License: Microsoft Enforces Stringent Policies

Revolutionizing Efficiency: Tailwind Version 4.0 Enhances CSS Features for Modern Era