it looks like as of version 1.23 there is a switch implemented for exactly this issue:
-
The new
global.disableWidgetStateDuplicationWarning
configuration option allows the silencing of warnings triggered by setting widget default values and keyed session state values concurrently (#3605, #6640). Thanks, @antonAce!
Check the announcement: Version 1.23.0