render-dom-lake: mark reused lakes to prevent SPA nav conflicts
After reusing an SSR lake element, set data-sx-lake-claimed attribute. Subsequent dom-query uses :not([data-sx-lake-claimed]) to skip already- reused elements, preventing SPA navigation from picking up stale lakes from previous pages. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -719,7 +719,9 @@
|
||||
hdr-replace
|
||||
(browser-replace-state hdr-replace)
|
||||
(and push-url (not (= push-url "false")))
|
||||
(browser-push-state (if (= push-url "true") url push-url))
|
||||
(do
|
||||
(save-scroll-position)
|
||||
(browser-push-state (if (= push-url "true") url push-url)))
|
||||
(and replace-url (not (= replace-url "false")))
|
||||
(browser-replace-state (if (= replace-url "true") url replace-url))))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user