Instead of including the layouts from the Route file, specify it as a lazy import when defining a route. This change allows us to wrap the file with the layout with a logic. It also beneficial for the tests because the layout won't generate unneeded markup anymore.
Instead of including the layouts from the Route file, specify it as a lazy import when defining a route. This change allows us to wrap the file with the layout with a logic. It also beneficial for the tests because the layout won't generate unneeded markup anymore.