Skip to content

fetch not exiting upon element destruction #1078

@goertzenator

Description

@goertzenator

Bug Report

I see that rc6 has new code to abort fetches when the owning element goes away, but it seems to not be working in my application. I did some code tracing and found...

  1. The observe call is being made.
  2. Before the connection even gets rolling, the observer is disconnected by this call
  3. And 2 explains why the callback is never invoked.

edit: Misinterpreted observations, ignore.

It is worth noting that in my application the parent element is destroyed at the same time as the fetching element. I will look at this more tomorrow, but wanted to get these findings posted today.

Datastar Version

v1.0.0-rc6

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