Add a system property -Dvaadin.hotswap.fullPageReload=true #20844
Description
Describe your motivation
When using HotSwapAgent 2.0.1 the new page merge/update has led to multiple problems/bugs. It is fine for some tasks when changing margins, padding, color, etc - and for Vaadin Copilot.
HotSwapAgent 1.4.2 will do a full refresh. It is always working, and every part of the page is run. It is safe and acts like a real situation when a user loads the page. The page reload also "flash" the page, make me sure it is fresh loaded. I use to add helpers, so I don't need to click on every reload. They will not always work in the new mode. E.g. element.executeJs("setTimeout(()=>{$0.click()},100)", btn.element)
hotswap.fullPageReload default to false
Today I have a duplicate of my SDK, one with HotSwapAgent 2.0.1, the other with HotSwapAgent 1.4.2. Not sure if 1.4.2 will work on newer JDK.
Describe the solution you'd like
With a system property -Dvaadin.hotswap.fullPageReload=true
it's easy to switch mode
Also doing the switch in Vaadin Copilot in runtime would be nice, but not necessary