Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client livepreview callback #10654

Open
j-mir-prazak opened this issue Jan 17, 2025 · 1 comment
Open

client livepreview callback #10654

j-mir-prazak opened this issue Jan 17, 2025 · 1 comment

Comments

@j-mir-prazak
Copy link

Hi,
maybe i am not getting it, why this is the case, however isn't it little bit strange to send back initialData (it is fired on document save)?

I don't know how it is in react or vue, but it seems to be bit too cumbersome to compare if it is initData or mergeData and there isn't any message in callback as what data this is (there is some in the window event, though).

If the return would be null, it would be comparable at least - but initialData just seem strange choice.

I would be greatful for any insight into this - or how would one go about easily discerning if this is newData or initData.

Thanks

@j-mir-prazak
Copy link
Author

okey, my bad - i guess i can just compare the two (i just have to not spead the object - naturally). however still it seems, that could be some assertion as what event just happen: live edit or document save

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant