I would greatly appreciate a separate toggle to show/hide layers in rendering only.
Often there’s reference geometry which should not appear in rendering, or a particularly heavy geometry which you want off in the viewport to make everything work smooth.
Ideally it could be like the lightbulb or lock toggle