Skip to content

Commit 11613f1

Browse files
fix what url to prioritize
1 parent 20fb6f8 commit 11613f1

File tree

1 file changed

+3
-1
lines changed
  • packages/common/src/components/Preview

1 file changed

+3
-1
lines changed

packages/common/src/components/Preview/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,10 @@ class BasePreview extends React.Component<Props, State> {
480480
};
481481

482482
handleRefresh = () => {
483+
// Changed this from prioritizing URL. This is to make "smooth forking" work,
484+
// but would expect the addressbar url to decide what is refreshed anyways?
483485
const { urlInAddressBar, url } = this.state;
484-
const urlToSet = url || urlInAddressBar;
486+
const urlToSet = urlInAddressBar || url;
485487

486488
if (this.element) {
487489
this.element.src = urlToSet || this.currentUrl();

0 commit comments

Comments
 (0)