Closed noam-honig closed 1 week ago
Cool idea!
Here's some quick testing with just re-setting the iframe.src
. This seems to work fine on Chromium-based browser. We'll need to check other browsers as well.
function onRefresh() {
if (iframe.ref) {
iframe.ref.src = iframe.ref.src;
}
}
...
return <button onClick={onRefresh}>
Is your feature request related to a problem?
There are cases where I want my student to be able to manually hit refresh on the preview window to reload it - this is espcially useful with the new
pathname
option for previews.Describe the solution you'd like.
A small refresh button :) it can be optional and determined for each preview - in the previews config
Describe alternatives you've considered.
I created my own "virutal" tabs and added my own refresh buttons, but it's not as cool
Additional context
No response