Skip to content

Cannot use Task in class outside of component. #338

@christophsanz

Description

@christophsanz

Describe the bug

I am trying to use a task in class, but i always get lifecycle_outside_component onDestroy(...) can only be used during component initialisation.

Is this a limitation of sheepdog or should i be able to use it outside of a component?

Reproduction

  • create SomeClass.svelte.ts file
  • add a task as a member to the class
  • instantiate and export the class from the same file
  • error appears

Severity

blocking all usage of Sheepdog

Package name

svelte

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions