Commit a0d3a5d
committed
fix: call onChangeCallback when live_preview parameter is present in URL
Visual Builder doesn't send client-data-send on site load, this leads to
the site not making any calls to the preview service which is required
for the subsequent entry PATCH requests to work correctly.
onChangeCallback is called when either skipInitialRender is false or
when live_preview search parameter is present in the URL. Since Visual
Builder provides these values through the search parameter, the site
makes entry GET calls to the preview service. Since live preview doesn't
provide these params in non-SSR modes, it will continue to work the
same.1 parent 20c2c58 commit a0d3a5d
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
156 | 163 | | |
157 | 164 | | |
158 | 165 | | |
| |||
0 commit comments