-
Notifications
You must be signed in to change notification settings - Fork 96
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
base: master
Are you sure you want to change the base?
Conversation
.then((html) => replaceHTML(id, html)) | ||
.then(setTimeout(pollAndReplace, delay, url, delay, id)) | ||
.catch((err) => { | ||
console.log('Cannot not retrive partial due to error:'); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
This is a simple refactor of turbo_shim.js to promote reuse because basically every component is going to poll as well as replace.