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

simple refactor of turbo shim #3514

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

simple refactor of turbo shim #3514

wants to merge 2 commits into from

Conversation

johrstrom
Copy link
Contributor

This is a simple refactor of turbo_shim.js to promote reuse because basically every component is going to poll as well as replace.

@johrstrom johrstrom closed this Apr 22, 2024
@johrstrom johrstrom reopened this Apr 22, 2024
.then((html) => replaceHTML(id, html))
.then(setTimeout(pollAndReplace, delay, url, delay, id))
.catch((err) => {
console.log('Cannot not retrive partial due to error:');
Copy link
Contributor

Choose a reason for hiding this comment

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

This all looks good, but it's early, and I swear this is reading as a double negative (but I'm brewing my coffee still). Should this just be Cannot retrieve partial due to error: or am I still waking up?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Lol yea, that's a double negative. I'll update now.

@johrstrom johrstrom closed this Apr 30, 2024
@johrstrom johrstrom reopened this Apr 30, 2024
Copy link
Contributor

@Oglopf Oglopf left a comment

Choose a reason for hiding this comment

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

Looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants