Skip to content

Granular Derived topics #4

@devagrawal09

Description

@devagrawal09

Our version of solid's createProjection.
Requires #2 and #3

Allow passing a function into createTopic that can attach event handlers that emit into the topic.

const [nextTopic] = createTopic((emit) => {
  onTodoAdded((todoAdded) => {
    emit("Added", todoAdded.id, todoAdded);
  });
});

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