Skip to content

Conversation

@picklelo
Copy link
Contributor

Create a .web/.nocompile function that stops the first initial compile on the backend process in dev mode. After the first skip, the file is deleted, enabling hot reload to keep working.

@Alek99 Alek99 self-requested a review October 17, 2023 22:42
Comment on lines +593 to +594
if os.environ.get(constants.SKIP_COMPILE_ENV_VAR) == "yes":
return False
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we just get rid of this? i don't think it was being used anywhere else

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is used in other places in reflex.py. For example we call _skip_compile() in db_init and migrate. Agreed we should have only one way to do this though as this could be a bit messy to have two methods.

masenf
masenf previously approved these changes Oct 19, 2023
@picklelo picklelo merged commit e7f0cd8 into main Oct 19, 2023
@picklelo picklelo deleted the nikhil/double-compile branch November 1, 2023 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants