Skip to content
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

add new "morph" and "refresh" action types for turbo-stream, issue #772 #773

Merged

Conversation

PeterFokkinga
Copy link
Contributor

No description provided.

@CLAassistant
Copy link

CLAassistant commented Apr 18, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@sdelamo sdelamo left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution. Please, keep the old constructor but deprecate it and add the new constructor.

* Morph only the children of the element designated by the target dom id.
*/
private final boolean childrenOnly;

@Nullable
private final Object template;

TurboStream(@NonNull TurboStreamAction action,
Copy link
Contributor

@sdelamo sdelamo Apr 18, 2024

Choose a reason for hiding this comment

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

keep the old constructor and annotate it with @Deprecated and also add @deprecated javadoc indicating to use the new one.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch, have added it back

@sdelamo sdelamo added the type: improvement A minor improvement to an existing feature label Apr 18, 2024
@sdelamo sdelamo merged commit ea0bf68 into micronaut-projects:5.3.x Apr 19, 2024
4 checks passed
@sdelamo sdelamo linked an issue Apr 19, 2024 that may be closed by this pull request
sdelamo added a commit that referenced this pull request Apr 22, 2024
We forgot these methods in: #773

See: #773
sdelamo added a commit that referenced this pull request Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: improvement A minor improvement to an existing feature
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

support new turbo-stream action types "morph" and "refresh"
3 participants