anacostiaAI / anacostia-pipeline

Anacostia is a framework for creating machine learning operations (MLOps) pipelines
Apache License 2.0
1 stars 2 forks source link

TypeError: r.removeEventListener is not a function #28

Closed mdo6180 closed 1 month ago

mdo6180 commented 1 month ago

when navigating from the main page with the DAG to the filesystemstore node page, I get this error

Uncaught TypeError: r.removeEventListener is not a function
    at EventSource.i (core.js:4142:30)

this error occurs in hyperscript.

mdo6180 commented 1 month ago

It turns out this error is exactly what I suspected it to be. I needed to close the event source in hyperscript prior to navigating to another page. this is one advantage of using htmx only instead of htmx + hyperscript. It appears the htmx SSE extension automatically closes the SSE connection when the html element with the connection is replaced with another html snippet.

mdo6180 commented 1 month ago

See commit that resolved issue here.