google/playground-elements

Reloading preview adds history states

Closed this issue · 0 comments

When an iframe reloads, the parent window's history is affected. So new history states are created whenever a playground preiew reloads. I think the trick to prevent that would be to remove the iframe from the DOM before we change its src, and then attach it after.