Skip to content

Incomplete Svelte 4 → 5 Migration: Legacy syntax still in use #1000

@rohanshrma222

Description

@rohanshrma222

What

The codebase uses Svelte 5 ("svelte": "^5.45.5") but still contains legacy Svelte 4 syntax in multiple files. This inconsistency can cause confusion and potential bugs during the migration.

Steps to reproduce the behavior:

  1. Search for on:click or onMount in the codebase
  2. Observe multiple files still using Svelte 4 event handlers and lifecycle hooks

Expected behavior

All files should use Svelte 5 syntax:

  • on:click → onclick
  • onMount → $effect
  • onDestroy → $effect (with cleanup function)

Screenshots

Platform (Desktop, Mobile, Hunger Games)

  • OS:
  • Platform

Part of

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions