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

Type error in rerender function #7

Open
teleskop150750 opened this issue Jan 8, 2025 · 2 comments
Open

Type error in rerender function #7

teleskop150750 opened this issue Jan 8, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@teleskop150750
Copy link

teleskop150750 commented Jan 8, 2025

rerender allows to pass only fields specified at render time

image

image

Perhaps ComponentProps<C> should be passed to RenderResult

image

image

@sheremet-va sheremet-va added the bug Something isn't working label Jan 13, 2025
@sheremet-va
Copy link
Member

sheremet-va commented Jan 13, 2025

Perhaps ComponentProps<C> should be passed to RenderResult

P is already ComponentProps<C>

@teleskop150750
Copy link
Author

teleskop150750 commented Jan 13, 2025

@sheremet-va

P extends the type of the component props and narrows down to the type passed to render
Default: RenderResult

image

image

RenderResult<ComponentProps>

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants