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

preview controller memoize response #989

Merged
merged 1 commit into from
Aug 4, 2024

Conversation

asdfzdfj
Copy link
Contributor

@asdfzdfj asdfzdfj commented Aug 4, 2024

adjusted preview controller to clear its content on close, but at the same time also memoize the embed response from the server

the should help in dealing with e.g. youtube embed preview where simply hiding the preview container would not make it stop, and there's no good way to universally stop embed media players other than to erase them out entirely, while not making extra requests to the server when the preview is being repeatedly shown/hidden in the same page session

@BentiGorlich BentiGorlich added enhancement New feature or request frontend Visual issues, improvements, bugs or other aspects relating mostly to the front end labels Aug 4, 2024
adjusted preview controller to clear its content on close, but at the
same time also memoize the embed response from the server

the should help in dealing with e.g. youtube embed preview where simply
hiding the preview container would not make it stop, and there's no good
way to universally stop embed media players other than to erase them out
entirely, while not making extra requests to the server when the preview
is being repeatedly shown/hidden in the same page session
@asdfzdfj asdfzdfj force-pushed the new/preview-memoize-response branch from ffade4d to dbabe43 Compare August 4, 2024 10:14
@asdfzdfj asdfzdfj merged commit 9b4ae22 into MbinOrg:main Aug 4, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request frontend Visual issues, improvements, bugs or other aspects relating mostly to the front end
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants