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

fix(JS): improve loader api #4171

Merged
merged 8 commits into from
Sep 17, 2024

Conversation

freeboub
Copy link
Collaborator

@freeboub freeboub commented Sep 14, 2024

Summary

Improve renderLoader API
update api to allow function prop in renderLoader instead of Element.

Motivation

It is a performence motivation
With element, the element is created on every render.
With function, the element is rendered only when needed

Changes

Only JS changes

Test plan

Can be tested with the sample

@freeboub freeboub changed the title Fix/improve loader api fix(JS): improve loader api Sep 14, 2024
…o into fix/improveLoaderAPI

# Conflicts:
#	examples/basic/src/VideoPlayer.tsx
Copy link
Member

@KrzysztofMoch KrzysztofMoch left a comment

Choose a reason for hiding this comment

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

Looks fine for me

@freeboub freeboub merged commit 835186a into TheWidlarzGroup:master Sep 17, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants