* This is at least 98% true.
data-reflexattributes. Those attributes become event handlers that map to methods in Stimulus controllers. The controllers connect events in your browser to methods in your Reflex classes on the server.
get_context_data(you don't need to implement it unless you desire special behavior, however; the class-based views you'll be using include
stimulus_reflex, which is set to
true. You can use this context variable to create an if/else block in your template or view that behaves differently depending on whether it's being called within the context of a Reflex update or not.
stimulus_reflexvariable is only available during the reflex phase and not when executing the view normally you'll have to use
context.get, otherwise you'll get an error.
self.request.session['balls_left']will be set to 3 before the initial HTML page has been rendered and transmitted.
sessionobject will persist across multiple requests; indeed, you can open multiple browser tabs and they will all share the same
session.session_keyvalue on the server. See for yourself: you can create a new session using Incognito Mode or using a second web browser.