Live preview does not render edit custom view #11525
Replies: 9 comments 1 reply
-
This should be fixed as of beta 122 #8930 |
Beta Was this translation helpful? Give feedback.
-
@paulpopus it's not fixed.
I expect when I move to Live Preview to have same Custom View A with Live Preview on the right panel(or as popup). |
Beta Was this translation helpful? Give feedback.
-
@dvorac20 is there a particular branch in the reproduction repo that has the custom view? |
Beta Was this translation helpful? Give feedback.
-
@kendelljoseph, the branch is custom_edit_view |
Beta Was this translation helpful? Give feedback.
-
Okay, was able to reproduce what you are calling attention to. I'm seeing what the best way to implement a solution according to what makes sense here that avoids having to add redundant components. |
Beta Was this translation helpful? Give feedback.
-
This issue has been marked as stale due to lack of activity. To keep this issue open, please indicate that it is still relevant in a comment below. |
Beta Was this translation helpful? Give feedback.
-
Its still relevant |
Beta Was this translation helpful? Give feedback.
-
@dvorac20 after digging into the code, this is a feature request. Adding the ability to sync custom components from the edit view with the live-preview view, without duplication requires structural changes to the Edit view and would be a breaking change. Since we would want to have the ability to include components seamlessly, we would need to restructure the existing components in the Edit view and Live preview so that we can pass components without duplicating Forms, headers, etc. |
Beta Was this translation helpful? Give feedback.
-
Just a thought, how about rendering ahead in the edit a place holder for the live preview and when moving there just render the live preview based on existing data on the view , this will resolve other issue we had with users don't understand why they have to save when they move to live preview |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the Bug
When we defined a custom view for a collection, in the edit view the custom view is displayed,
After saving the page and moving to live preview the custom view disapears and the default view is shown
Link to the code that reproduces this issue
https://github.com/shefing/payload_custom_edit_view
Reproduction Steps
Steps to reproduce:
Expected:
Custom view will display.
Actual:
Default view displayed instead of custom view
Which area(s) are affected? (Select all that apply)
area: ui
Environment Info
Output from 'pnpm payload info':
Binaries:
Node: 20.9.0
npm: 10.2.5
Yarn: 1.22.21
pnpm: 9.10.0
Relevant Packages:
payload: 3.0.0-beta.104
next: 15.0.0-canary.104
@payloadcms/db-mongodb: 3.0.0-beta.104
@payloadcms/graphql: 3.0.0-beta.104
@payloadcms/live-preview: 3.0.0-beta.104
@payloadcms/next/utilities: 3.0.0-beta.104
@payloadcms/plugin-cloud-storage: 3.0.0-beta.104
@payloadcms/plugin-redirects: 3.0.0-beta.104
@payloadcms/plugin-seo: 3.0.0-beta.104
@payloadcms/richtext-lexical: 3.0.0-beta.104
@payloadcms/storage-s3: 3.0.0-beta.104
@payloadcms/translations: 3.0.0-beta.104
@payloadcms/ui/shared: 3.0.0-beta.104
react: 19.0.0-rc-06d0b89e-20240801
react-dom: 19.0.0-rc-06d0b89e-20240801
Beta Was this translation helpful? Give feedback.
All reactions