-
Couldn't load subscription status.
- Fork 1
Open
Description
Not sure if that's the right place and you are open to feedback right now, but just wanted to send you this idea:
Maybe instead of always running window.reload we could let users decide what they want to do?
Something like this https://github.com/episerver/cms-visual-builder-hello-world/blob/088ac8d34abb6408829c9d0165b506bdc9931abd/src/helpers/onContentSaved.ts#L34
instead of
content-js-sdk/packages/optimizely-cms-sdk/src/preview/react/PreviewComponent.tsx
Line 31 in bf8fa6b
| window.location.replace(finalUrl); |
I mean the SDK can be used in a server-side rendered app (nextjs, remix etc) but also in a traditional SPA.
Metadata
Metadata
Assignees
Labels
No labels