You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return "Args are [%s] and kwargs are %s" %(",".join(args),str(kwargs))
31
+
32
+
The additional arguments, which are reported as the ``kwargs`` content in this example, include
33
+
34
+
:dash_app: For stateful applications, the ``DashApp`` model instance
35
+
:dash_app_id: The application identifier. For stateless applications, this is the (slugified) name given to the ``DjangoDash`` constructor.
36
+
For stateful applications, it is the (slugified) unique identifier for the associated model instance.
37
+
:session_state: A dictionary of information, unique to this user session. Any changes made to its content during the
38
+
callback are persisted as part of the Django session framework.
39
+
:user: The Django User instance.
40
+
41
+
The ``DashApp`` model instance can also be configured to persist itself on any change. This is discussed
42
+
in the :ref:`models_and_state` section.
43
+
44
+
45
+
.. _using_session_state:
46
+
Using session state
47
+
------------------
48
+
49
+
Changes to the session state and other server-side objects are not automatically propagated to an application. Something in the front-end UI has to invoke a callaback; at this point the latest version of these objects will be provided to the callback. The same considerations as in other Dash `live updates <https://dash.plot.ly/live-updates>`_ apply.
0 commit comments