Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

onDestroy not called when navigating #314

@daveychu

Description

@daveychu

With Svelte we can do some cleanup when a component is destroyed by either returning a function in onMount or using onDestroy. These are both ignored when navigating back via actionBar or using navigate.

Reproduction: https://github.com/daveychu/svelte-native-on-destroy-bug

  • ns run ios
  • Tap "Tap me" to go to "Details"
  • Tap the back button in the action bar or "Tap me" to go back to "Home"
  • Expected: Both intervals cleared
  • Actual: None are cleared

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions