Custom components: cant edit methods

I’m working on a custom component. I’ve added some methods to it. When I go back to edit the methods, I can’t-- I can only change the name, but can’t change the parameters or return values, and I can’t delete the method (I would do this and redo it if that were possible)

Thanks @David_Wolber

I’ve relayed this to the Custom Component team and will let you know what they say

Unfortunately, you can’t change the parameters or the number of outputs right now after you 1) have published a custom component or 2) if you are using blocks referring to the method/property/event in the component editor.

This is to make sure that components can be upgraded without messing up projects, and that the blocks have the correct number of inputs, etc. In a future version we hope to remove this restriction.

How to fix for now:
Step 1) If you have previous published your component
Go to Thunkable and copy your custom component

Step 2) Regardless of whether you’ve published, remove any block in the component editor that is referring to the method/property/event that you are trying to modify.

Sorry for the inconvenience

2 Likes

Hi Paul. No worries and thanks. The custom components are incredible and open
up amazing possibilities

Dave

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.