Skip to content

Set up a syntax for target selector action groups to be run after stack #274

@bob2517

Description

@bob2517

An example of this would be for when using reactive variables. Like you need something to happen after making variable changes and need to wait until all the updates are done before running some actions on a target. Reactive variables have their own event flow when updating.

The workaround is to run a trigger on a custom event after stack. It's a mild inconvenience.

A simple "after stack" at the end of the target selector would be the indicated syntax to be consistent with the action commands.

Eg.:

pagination-links a[data-current-page="{$currentPage}"] after stack {
    take-class: .currentPage;
    pause: 1s;
    #status {
        render: "what just happened";
    }
}

Obviously this wouldn't just be after stack, it could be "after 1s", etc. I don't have a use case for adding "every" yet.

Metadata

Metadata

Assignees

Labels

docs to doDocumentation still needs doing before this can get releaseddone on branchThis issue has been committed to the latest branch, and will get merged with the next releaseenhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions