Skip to content

Cleaning up effects from removed widget #40

Closed
@justinlovinger

Description

@justinlovinger

Say that I have a widget that runs in parallel with an Effect, such as

canvas [ _id $ show canvasId ] []
  <|> (liftAff (runCanvas canvasId) *> empty)

I'm finding that, when this widget is removed, the runCanvas effect continues to run, and as this widget is removed and re-added, the effects stack, resulting is performance slowdown and memory buildup.

Does Concur have something like React's componentWillUnmount to clean up effects, like the example above.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions