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

export getPreviewsLoaderHook for public use #646

Closed
CanRau opened this issue Dec 20, 2023 · 4 comments
Closed

export getPreviewsLoaderHook for public use #646

CanRau opened this issue Dec 20, 2023 · 4 comments
Labels
enhancement New feature or request no-stale

Comments

@CanRau
Copy link
Contributor

CanRau commented Dec 20, 2023

Is your feature request related to a problem? Please describe.
I'm building an upload experience for our lexical editor and would love to directly use getPreviewsLoaderHook instead of <UploadPreview/> or having to unnecessarily rebuild the logic myself as everything is already there 😇

Describe the solution you'd like
Export getPreviewsLoaderHook to make it publicly available 🙏
Hope it's not considered an implementation detail 🤞🏼

Describe alternatives you've considered
Rebuilding the generation of preview myself

@CanRau
Copy link
Contributor Author

CanRau commented Dec 20, 2023

Might still be nice, though I'm not just using a couple of lines to generate them myself and am good to go, forget sometimes that it's not that hard 😅

@yoavniran yoavniran added the enhancement New feature or request label Dec 22, 2023
@yoavniran
Copy link
Collaborator

hey @CanRau
thats an interesting idea. I will consider it for the next minor version.
thanks

@yoavniran
Copy link
Collaborator

done in #666

@yoavniran
Copy link
Collaborator

now available in 1.8.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request no-stale
Projects
None yet
Development

No branches or pull requests

2 participants