wasp-lang / wasp

The fastest way to develop full-stack web apps with React & Node.js.
https://wasp-lang.dev
MIT License
12.93k stars 1.15k forks source link

Investigate how our file watching works #1844

Open sodic opened 5 months ago

sodic commented 5 months ago

With Wasp 0.12.0 and the restructuring (#1688), we've removed the constraint of separating server files from client files.

We should investigate the impact this had on our watching procedures and hot reloads.

Goals:

Questions, on each change, what does:

Relevant context:

Relevant todo in the code: https://github.com/wasp-lang/wasp/blob/f2721e767931efdfc0731a877239ba54eafeba9e/waspc/src/Wasp/Analyzer/Evaluator/Evaluation/TypedExpr/Combinators.hs#L176

Martinsos commented 4 months ago

We also seem to be having an issue with too many files being watched with the recent projects, check out this issue: https://github.com/wasp-lang/wasp/issues/1919 .

This might be because we have some files being watched redundantly.

There are commands that track how many files are watched by which process, so we should se that to observe what is happening.