I have a
handle_params/3 clause that sends a
live_patch down the socket. Assume the first path is PATH_A and the second path is PATH_B, I found the following discrepancy:
- If I load PATH_A from scratch, it will patch itself to PATH_B correctly and the browser’s location bar shows PATH_B.
- If something else live_patch to PATH_A, the end result is both
handle_params/3are executed and the page is rendered with the content of PATH_B, however, the url in the location bar is showing PATH_A.
I don’t think this is right. Somehow the double live_patch make the content and URL disagree: the server side is patched twice and renders the correct content but the client side patch the location only once. How do I fix or work around this?