Skip to content

Created a plan for supporting any trigger in Interact#146

Open
ydaniv wants to merge 5 commits intomasterfrom
interact-support-any-trigger
Open

Created a plan for supporting any trigger in Interact#146
ydaniv wants to merge 5 commits intomasterfrom
interact-support-any-trigger

Conversation

@ydaniv
Copy link
Collaborator

@ydaniv ydaniv commented Mar 9, 2026

Description

New Plan for allowing Interact to work with any trigger provided via trigger in the Config.

listContainer?: string;
listItemSelector?: string;
trigger: TriggerType;
trigger:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this union types are annoying and impossible to work with.. I think it is time to implement a generic OneOf template

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ameerabuf ok, can you give a suggestion?

@ydaniv
Copy link
Collaborator Author

ydaniv commented Mar 12, 2026

This design is currently stuck since the params property is currently designed for a single trigger.
If we want to allow a list of triggers, or an object with enter/leave properties with lists, we'll need to somehow consolidate the params property with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants