And got to the point where I have a component deployed in dev mode and inserted into a test app. The problem is that when I update the javascript code locally and run (or just leave running) npx retool-ccl dev, the code on the app builder does not update. I have tried refreshing, clearing cache, and going into preview mode.
If I run npx retool-ccl deploy instead, and then switch to the new version in the editor config, that does cause the code to update as expected, but it seems like the dev release is just stuck on what I published as the first version.
I am not sure what could be causing this - but I had a few troubleshooting questions that could help me / others figure out the problem.
First, I am assuming there are no errors while building? It may also be worth checking your browser dev tools while within the retool app for related errors.
Secondly, have you tried a different custom component? It might be worth cloning one of the Retool examples and seeing if you experience the same issue.
Hi @jamesg31, thanks for looking at this. I am not seeing any errors while building or while using the custom component in my project, and I've been seeing this consistently while making changes to the code. I cloned from the template repo, not the examples, so I'll check if there's something different in there. What's weird is that publishing a new version works fine, it's just annoying to have tons of versions every time I want to test a change haha
Custom components are a relatively new feature - and a super powerful one - but there are definitely a few kinks to work out still. Just to rule out the obvious, can you confirm that you've switched to the dev build via the dropdown when observing this behavior?
Next, do you see any Build succeded messages in your terminal during local development? You should see one whenever you save changes to your local files.
I'll also echo @jamesg31 and ask about any errors in the browser console, specifically. The last thing I can think of right now is that it could be a networking issue, but that would only arise if you're running a self-hosted version of Retool.