Detailed steps to reproduce the bug
When i use the DevTools to register an unregistered component (for example the default counter component) it removes the inputs (props) from the builder-registry.js
So the component doesn’t lack any props, right? InitialCount is defined, but the Devtools doesn’t seem to recognize props when registering? This is what the Devtools register in the builder-registry.js:
"use client";
import { Builder } from "@builder.io/react";
import Counter from "./components/Counter/Counter";
Builder.registerComponent(Counter, {
name: "Counter",
});
I can update the builder-registry.js by adding the inputs manually:
When I unregister the counter component in the Devtools, the builder-registry.js will be empty. Once I register the same counter component the inputs are missing:
"use client";
import { Builder } from "@builder.io/react";
import Counter from "./components/Counter/Counter";
Builder.registerComponent(Counter, {
name: "Counter",
});
However, if additional attributes are added, or inputs are modified and the component is deregistered, the default code will be reinstated upon registration. This seems to be the current behavior. We’ll share this with our internal team to enhance the DevTools experience.
Was that the issue you were pointing out? Let us know!