So for my project we can make custom react components that’s built and the code is transferred to the root of the project. I automated that by a few os commands.
I have it so anytime you change a file and save it does those commands. But I want make it even more efficient though. So instead every save => compile the custom react components I only want it if you save a file within that folder, if not do the normal hot reloading without compiling the custom react code.
In short, I don’t want to recompile the react files if a change wasn’t done in the custom react code folder. Because right now my automated process does it on every save.
I’m thinking:
If there was a way to check what file hot reloaded from dash’s hot reload method that would be great, or even access to that function. But I even looked in the source code I didn’t see anything that allow me to do that.
Or If there’s a callback that happens before the hot reload feature in dash
Or If there’s a library or plugin in python that could help me out because I just started using it a couple of months ago.
I made custom react components with this tutorial: Build Your Own Components | Dash for Python Documentation | Plotly