You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using flamethrower as a client-side router that uses .replaceWith() to update the whole document.body and the observer unable to catch it.
After further investigation, the .replaceWith() seems to create a new body instance resulting in the observer missing its targets to monitor, there's no log coming out after the body is replaced.
For now, I temporarily fix it by changing the observer target into documentElement and condition to watch the title & body changes when the entry target is head or HTML, then body children.
The text was updated successfully, but these errors were encountered:
I'm using flamethrower as a client-side router that uses
.replaceWith()
to update the wholedocument.body
and the observer unable to catch it.After further investigation, the
.replaceWith()
seems to create a new body instance resulting in the observer missing its targets to monitor, there's no log coming out after the body is replaced.For now, I temporarily fix it by changing the observer target into
documentElement
and condition to watch the title & body changes when the entry target is head or HTML, then body children.The text was updated successfully, but these errors were encountered: