Skip to content

fix: add null check for componentInstance in visitComponentTree#20

Merged
euaaaio merged 2 commits into
nanostores:mainfrom
oguzhanmemis7849:patch-nanostores-devtools-fix
Jul 9, 2025
Merged

fix: add null check for componentInstance in visitComponentTree#20
euaaaio merged 2 commits into
nanostores:mainfrom
oguzhanmemis7849:patch-nanostores-devtools-fix

Conversation

@oguzhanmemis7849

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a null check to prevent a potential runtime error when componentInstance or its proxy is undefined during the visitComponentTree hook.

  • Guard against missing componentInstance.proxy before checking for the _nanostores tag.
  • Converts the condition to use optional chaining.

Comment thread devtools/index.js Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@euaaaio
euaaaio merged commit 8b574fd into nanostores:main Jul 9, 2025
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.

3 participants