When the file containing the whole JavaScript code of a form exists, but the cache entry containing the list of JavaScript files to import for this form is missing, the list is built from scratch then stored in cache.
The problem is that during the construction of the list, the conditions are missed because they are fetched from cache, leading in a complete forgetting of the JavaScript files for these conditions. The list stored in cache is then wrong, leading in JavaScript errors in frontend.
When the file containing the whole JavaScript code of a form exists, but the cache entry containing the list of JavaScript files to import for this form is missing, the list is built from scratch then stored in cache.
The problem is that during the construction of the list, the conditions are missed because they are fetched from cache, leading in a complete forgetting of the JavaScript files for these conditions. The list stored in cache is then wrong, leading in JavaScript errors in frontend.
The problem starts in: FormAssetHandler:244.