Skip to content
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.

Allow async renderCustomPickerElement #904

Merged
merged 1 commit into from
Feb 10, 2023

Conversation

julien-nc
Copy link
Collaborator

We need a generic way to get the renderCustomPickerElement result, whether the function passed to registerCustomPickerElement is async or not.

I realized this when trying to lazy load a custom picker element, the callback is then async and the renderElement method of <CustomPickerElement> fails to handle the renderCustomPickerElement() result.

…function is async or not

Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Copy link
Collaborator

@juliushaertl juliushaertl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good addition 👍

@juliushaertl juliushaertl merged commit bb5fa6e into master Feb 10, 2023
@juliushaertl juliushaertl deleted the enh/noid/allow-async-renderCustomPickerElement branch February 10, 2023 14:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants