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

Draft: Futurism updates-for support #166

Conversation

xtr3me
Copy link

@xtr3me xtr3me commented Nov 25, 2021

This PR accompanies the following Futurism PR: stimulusreflex/futurism#120

Since I found no other way to instruct morphdom to not mutate the futurism-element I introduced a data attribute to instruct the updates-for element to not call morphdom in the first place.

Secondly I introduced a data attribute that is used to emit a event to the provided selector. This allows futurism to listen to the event and call it's futurism actioncable channel and refresh it's partial without glitching

})
}

if (blocks[i].dataset.afterUpdateEventSelector) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should happen inside the onElUpdated too?

@julianrubisch
Copy link
Contributor

I'm closing this as a lot of time has since passed and the implementations diverged a bit. Feel free to message me if you still sense an enhancement is due here. We're cleaning up PRs for the 5.0 release.

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