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

Double rendering canjs component on initial load #23

Closed
christopherjbaker opened this issue Nov 12, 2018 · 0 comments
Closed

Double rendering canjs component on initial load #23

christopherjbaker opened this issue Nov 12, 2018 · 0 comments
Assignees
Labels

Comments

@christopherjbaker
Copy link
Contributor

At present, the React component renders the custom dom element as <foo-component />, then assigns the props to the already existing viewmodel. This has the effect of causing a double render at mount time, with the first render having no props.

ivospinheiro added a commit that referenced this issue Jan 9, 2019
Override can-view-callbacks renderComponent function to when element
auto-mount is false the component isn't auto mounted
@ivospinheiro ivospinheiro self-assigned this Jan 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants