Skip to content

Conversation

@hgray-instawork
Copy link
Collaborator

@hgray-instawork hgray-instawork commented Apr 1, 2025

Adding a new unload trigger which is triggered when a view is unmounted.

Asana

unload-example.mp4

@hgray-instawork hgray-instawork force-pushed the hardin/trigger-unload branch from 67e1b9f to ee55f7f Compare April 1, 2025 23:13
@hgray-instawork hgray-instawork requested review from a team and adamstep April 2, 2025 00:21

Triggers when the element is unloaded in the screen.

> Elements with `hide="true"` are not unloaded in the screen. This means any hidden element (or child element) with the `unload` trigger will not be executed.
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe to make this clear, we should say "Elements with hide=true are never loaded. Thus, they are not unloaded and will not trigger an unload behavior."

@hgray-instawork hgray-instawork marked this pull request as draft April 2, 2025 16:42
@hgray-instawork
Copy link
Collaborator Author

We are not ready to add this feature now but will keep this around for possible later use. See Asana ticket for further discussion.

@flochtililoch flochtililoch removed the request for review from a team April 7, 2025 16:11
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.

3 participants