Make collectionPopulationRequestHandler available in @payloadcms/live-preview #10946
janus-reith
started this conversation in
Feature Requests & Ideas
Replies: 1 comment
-
Opened a PR: #10947 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
mergeData
allows to set a custom function for the fetch request handler:https://github.com/payloadcms/payload/blob/main/packages/live-preview/src/mergeData.ts#L76
const requestHandler = args.collectionPopulationRequestHandler || defaultRequestHandler;
But that arg isn't passed over to
mergeData
inhandleMessage
:https://github.com/payloadcms/payload/blob/main/packages/live-preview/src/handleMessage.ts#L46
Currently it is not possible to pass down a custom function when using the
@payloadcms/live-preview
package.It would be nice if that parameter could be passed down to
mergeData
:Beta Was this translation helpful? Give feedback.
All reactions