Skip to main content
Lucas_Miqueias
New Member
Jun 30, 2023 4:08 PM UTC
Question

Hot reload not working with React

I’ve been trying to use Hot Reload for a while now but it doesn’t update.
I always need to reload the plugin.

Is there anything I can do?

ezgif-2-b0e7e698b3

This topic has been closed for replies.

16 replies

Andres_Vaquero
Feb 5, 2024 7:17 AM UTC

If you are working with stylesheets, you might find my new package useful

GitHub
atrutt
New Member
Mar 13, 2024 6:52 PM UTC

I was having the same issue. It seems like launching the plugin from Resources > Plugin works better than from the right panel relaunch button.

Yash_Poojary
Oct 22, 2024 2:36 AM UTC

Did you find a solution for this?

Gavin
Active Member
Oct 31, 2024 3:24 PM UTC

Hi, I don’t mean to highjack this thread but I’m the author of a library that makes developing Figma plugins easier. One of the main features is it uses a local development server instead of re-building the file with each file change. I think this will solve your issue as it doesn’t rely on Figma to reload the plugin. One caveat is that when you publish your plugin, you must create a build before doing so. But it’s a small price to pay for a better developer experience.

You can check it out at plugma.dev.

Let me know if you have any feedback.

Lyon_Yu
Nov 1, 2024 3:57 PM UTC

Cool shit! This really solved my urgent problem. I spent most of the day just implementing “building Figma plugins with vitejs” and then encountered the hot reload issue. Just when I was about to give up, I saw your post. Plugma really perfectly solved my problem.

Gavin
Active Member
Nov 1, 2024 5:18 PM UTC

This is great to hear. I’m so glad it helped you.