@metron-labs/quote-react 0.1.26 → 0.1.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -90,8 +90,10 @@ function QuickQuoteInner({ fullPage = false, hideHeader = false, internal = fals
90
90
  return;
91
91
  const url = new URL(window.location.href);
92
92
  url.hash = next === "basket" ? "quote-request" : "matched-products";
93
- const state = { ...(window.history.state ?? {}), boqQuoteStage: next };
94
- window.history.pushState(state, "", url);
93
+ // Our own state only - copying the host's (e.g. Turbolinks' restoration id) makes its
94
+ // router treat back/forward between our steps as its page visits and re-render the page,
95
+ // wiping the quote. Next.js's patched pushState adds its own fields back.
96
+ window.history.pushState({ boqQuoteStage: next }, "", url);
95
97
  }, []);
96
98
  useEffect(() => {
97
99
  const onPopState = (event) => {