Skip to content

[Live] Action and Model-based data-loading behavior #470

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 27, 2022

Conversation

weaverryan
Copy link
Member

@weaverryan weaverryan commented Sep 20, 2022

Q A
Bug fix? yes/no
New feature? yes
Tickets Fix #462 and Feature E
License MIT

NOTE: BUILT ON TOP OF #466.

Been wanting this for awhile :): only trigger loading behavior on an element for a specific action.

<span data-loading="action(saveForm)|show">Loading</span>

Or only when a specific model has been updated:

<span data-loading="model(email)|show">Loading</span>

TODO:

  • Let's also add "model" loading to this PR as well

@weaverryan weaverryan changed the title [Waiting] Live loading action2 [Waiting] Live loading action Sep 21, 2022
@weaverryan weaverryan changed the title [Waiting] Live loading action [Waiting][Live] Action-based data-loading behavior Sep 23, 2022
@weaverryan weaverryan changed the title [Waiting][Live] Action-based data-loading behavior [Waiting][Live] Action and Model-based data-loading behavior Sep 23, 2022
@weaverryan weaverryan closed this Sep 27, 2022
@weaverryan weaverryan reopened this Sep 27, 2022
@weaverryan weaverryan marked this pull request as ready for review September 27, 2022 14:52
@weaverryan weaverryan changed the title [Waiting][Live] Action and Model-based data-loading behavior [Live] Action and Model-based data-loading behavior Sep 27, 2022
@weaverryan weaverryan merged commit 47be741 into symfony:2.x Sep 27, 2022
@weaverryan weaverryan deleted the live-loading-action2 branch September 27, 2022 15:04
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.

[LiveComponent] Support loading states on an action-by-action basis
1 participant