Skip to content

Illustrate toggling a filter with an event #24

@deanrad

Description

@deanrad

Here:
https://codesandbox.io/s/seasonal-image-filter-vcvwl

Some thoughts - the 'toggle' mode is one way, but an important other way is:

channel.listen('xmas/apply', ({ payload: { checked } }) => {
   return checked ?? new Observable(xmasFilter).pipe(
        takeUntil(query('xmas/apply', {checked: false}))
  );
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions