Skip to content

Pass componentId into onMounted callback#981

Merged
dmjio merged 2 commits into
masterfrom
component-id-mount
Jun 12, 2025
Merged

Pass componentId into onMounted callback#981
dmjio merged 2 commits into
masterfrom
component-id-mount

Conversation

@dmjio
Copy link
Copy Markdown
Owner

@dmjio dmjio commented Jun 12, 2025

Now that onMountedWith has been introduced, we need to pass the componentId into the callback. Otherwise, we risk runtime failure with syncCallback1

  • Pass componentId into onMountedWith callback
  • Use correct type VComp -> VNode in callback
  • Regen JS

dmjio added 2 commits June 12, 2025 10:56
Now that `onMountedWith` has been introduced, we need to pass the
componentId into the callback. Otherwise, we risk runtime failure.

- [x] Pass `componentId` into `onMountedWith` callback
- [x] Regen JS
@dmjio dmjio merged commit 529bb9b into master Jun 12, 2025
3 checks passed
@dmjio dmjio deleted the component-id-mount branch June 12, 2025 17:35
dmjio added a commit that referenced this pull request Jun 29, 2025
* Pass componentId into `onMounted` call.

Now that `onMountedWith` has been introduced, we need to pass the
componentId into the callback. Otherwise, we risk runtime failure.

- [x] Pass `componentId` into `onMountedWith` callback
- [x] Regen JS

* Drop dead code (VComp)
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.

1 participant