Skip to content

Conversation

@upupming
Copy link
Collaborator

@upupming upupming commented Jun 17, 2025

This PR adds the "Preact Devtools" Panel to LynxDevtool, an example ReactLynx App demo: https://github.com/upupming/rspeedy-mininal-template/tree/feat/preact-devtools

image

@CLAassistant
Copy link

CLAassistant commented Jun 17, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

@talisk talisk left a comment

Choose a reason for hiding this comment

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

PTAL, we should add Lynx License comments to the files

@upupming upupming force-pushed the feat/preact-devtools branch from fd95623 to 83ec0cf Compare July 30, 2025 02:40
Copy link
Collaborator

@talisk talisk left a comment

Choose a reason for hiding this comment

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

🚀

@talisk talisk added this pull request to the merge queue Jul 30, 2025
Merged via the queue into lynx-family:main with commit e1c3893 Jul 30, 2025
5 checks passed
colinaaa pushed a commit to lynx-family/lynx-stack that referenced this pull request Aug 6, 2025
…tools (#1173)

<!--
  Thank you for submitting a pull request!

We appreciate the time and effort you have invested in making these
changes. Please ensure that you provide enough information to allow
others to review your pull request.

Upon submission, your pull request will be automatically assigned with
reviewers.

If you want to learn more about contributing to this project, please
visit:
https://github.com/lynx-family/lynx-stack/blob/main/CONTRIBUTING.md.
-->

## Summary

<!-- Can you explain the reasoning behind implementing this change? What
problem or issue does this pull request resolve? -->

<!-- It would be helpful if you could provide any relevant context, such
as GitHub issues or related discussions. -->

We are adding Preact Devtools Support for ReactLynx, this PR contains
related changes for PreactDevtools to work properly.

After this we can inspect ReactLynx App in LynxDevtool just like any
Preact Web App:

<img width="1620" alt="image"
src="https://github.com/user-attachments/assets/3ffaa7af-0fc7-4637-970d-943d18fff616"
/>

Related PR: lynx-family/lynx-devtool#56

## Checklist

<!--- Check and mark with an "x" -->

- [x] Tests updated (or not required).
- [x] Documentation updated (or not required).


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Added a new event in development mode to provide up-to-date background
snapshot instance information for improved DevTools support.

* **Tests**
* Simplified and updated global object mocking in test cases for better
reliability.
* Enhanced test environment setup by introducing an event emitter for
more accurate event handling during tests.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
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