React UI not rendering on plugin until place reload

I have an issue where my react-made UI is not rendering inside of my plugin dock widget at all, only until I reload the place. At this point it renders, but nothing shows when I choose “Save as Local Plugin” again.

My code produces no errors and works perfectly fine.

2 Likes

this just gives a type error

1 Like

nothing exists in pluginguiservice either, so it’s not because it’s not visible
image

1 Like

Yeah, I was wrong, sorry, maybe try setting the Handle to Toolbar, I’m not too sure thought…

1 Like

The handle is usually a ScreenGui of some sort, which is the equivalent of a DockWidgetPluginGUI. But don’t worry about it

1 Like

Ok, basically you have to say the type of GuiObject you want to create, so maybe use typeof(StudioComponents.Background) and the same for the other.

1 Like

It doesn’t work anyway because the type is not valid

1 Like

Set it manually? I mean you could just say which Instance type you want to create, right?