# Code Hot Reloading with Context Passing This is a demonstration how to achieve hot reloading while passing the context. The idea behind this is, that if using hot reloading, the main program uses the context and memory allocators from the host, thus preserving state. ## Usage Hot reload demonstration: ``` jai build.jai - run silent hotreload ``` Then you can edit the `src/main.jai` file and watch the live changes. For just compiling & running the main file, without hotreloading: ``` jai build.jai - run silent ``` Only rebuild the main file as so, without using the host: ``` jai build.jai - silent hotreload rebuild ```