Skip to content

Bring back explicit event sinks #1

@devagrawal09

Description

@devagrawal09

Bring back the explicit event sink createListener and add a createMutationListener.

Currently side effects in event handlers are executed immediately, causing the order of execution to be a factor.
The current idea is to perform side effects in explicit sinks so that their timing and order can be controlled.

Event transformations will be pure and non-effectful functions. State updates will live in createMutationListener (think createRenderEffect), and user defined side effects in createListener (think createEffect).

All listeners will be queued in separate queues. Once all the pure derivation is complete, mutation listeners will be run in a solid batch, and finally user defined listeners (once solid's queue is flushed).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions