v0.92 π¨π’ (2024-08-22)
BREAKING CHANGES
Componentclass is no longer a subclass ofView. To configure theViewclass, set theComponent.Viewnested class. HTTP methods likegetorpostcan still be defined directly onComponentclass, andComponent.as_view()internally callsComponent.View.as_view(). (See Modifying the View class)
Feat
The inputs (args, kwargs, slots, context, ...) that you pass to
Component.render()can be accessed from withinget_context_data,get_templateandget_template_nameviaself.input. (See Accessing data passed to the component)Typing:
Componentclass supports generics that specify types forComponent.render(See Adding type hints with Generics)