Deserialize state before setting it, as is done elsewhere set_state is used.
Deserialize state before setting it, as is done elsewhere set_state is used.

This is causing at least one problem in the ipyleaflet 8.0 upgrade tests, as seen in https://github.com/jupyter-widgets/ipyleaflet/pull/968
jupyter-widgets/ipywidgets,ipython/ipywidgets,ipython/ipywidgets,ipython/ipywidgets,jupyter-widgets/ipywidgets,jupyter-widgets/ipywidgets,ipython/ipywidgets,jupyter-widgets/ipywidgets,ipython/ipywidgets