Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Attaching custom renderers to devtools #1177

@marvinhagemeister

Description

@marvinhagemeister

I'm currently revamping the devtools code for preactjs but I'm running into a few problems. The existing code tries to mimic the stack api by providing a stub reconciler, similar to how infernojs or other projects have done it.

For our next version I tried to switch to providing a stub fiber-based renderer, but the more I work on it, the more difficult it get's to convert our internal vnode structure to a fiber for react due to fundamental differences in how updates work in both frameworks.

So I've read through the devtools the past days and I'm wondering if we could introduce a way to allow third party alternatives to more easily integrate with the devtools. In our case we'd love to provide our attachRenderer-function instead of relying on the built-in ones. That way library authors could create the events themselves and don't have to pretend to share the same internal objects. This would be tremendously helpful and remove quite a bit code from our current devtools integration.

I'm happy to explore more ideas on integrating third party renderers into the devtools and would love to work something out.

/cc @Havunen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions