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

DEV: Add component function to component owner #1563

Merged
merged 2 commits into from
Feb 20, 2023

Conversation

thetarnav
Copy link
Contributor

@thetarnav thetarnav commented Feb 19, 2023

The function passed to fn property of dev component owners is not the original component function.

image

A reference to the original component function will be handy for leveraging chrome's inspect() API for viewing the component in the chrome Sources tab.
Also, the new PR to solid-refresh is passing component location by adding it as a property of the original function. Which can be used in devtools to open the component source in user's IDE.

Additionally, I've renamed the componentName property to name - no idea why I haven't done that in #1460
Since the name generation has been deleted, the name property will be empty.

@changeset-bot
Copy link

changeset-bot bot commented Feb 19, 2023

🦋 Changeset detected

Latest commit: 2ee550e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
solid-js Patch
test-integration Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@thetarnav thetarnav changed the title Add component funciton to dev component Add component function to dev component Feb 19, 2023
@thetarnav thetarnav changed the title Add component function to dev component DEV: Add component function to component owner Feb 19, 2023
@ryansolid ryansolid merged commit 2446976 into solidjs:next Feb 20, 2023
@thetarnav thetarnav deleted the dev-component-function branch February 20, 2023 06:44
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