Skip to content

Allow adding multiple filters #1427

Open
@marcusirgens

Description

@marcusirgens

I need to use multiple filters. While I can easily implement a function to do this and provide it as a single filter, it would be nice to have the option to add filters independently, especially when dynamically building the list of ProgramOption.

An example:

p := tea.NewProgram(
    MyModel{},
    tea.WithAddedFilter(AlterSomeEvent),
    tea.WithAddedFilter(RemoveSomeOtherEvent))

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions