mirror of
https://github.com/django-components/django-components.git
synced 2025-09-26 15:39:08 +00:00
refactor: Instantiate component when rendering, and remove metadata stack (#1212)
* refactor: Instantiate component when rendering, and remove metadata stack * refactor: update test * refactor: fix linter errors * docs: remove example from changelog
This commit is contained in:
parent
2e08af9a13
commit
bae0f28813
33 changed files with 1123 additions and 707 deletions
|
@ -4,6 +4,7 @@ nav:
|
|||
- Compatibility: compatibility.md
|
||||
- Installation: installation.md
|
||||
- Security notes 🚨: security_notes.md
|
||||
- Migrating: migrating.md
|
||||
- Community: community.md
|
||||
- Contributing: contributing.md
|
||||
- Development: development.md
|
||||
|
|
25
docs/overview/migrating.md
Normal file
25
docs/overview/migrating.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
Django-components is still in active development.
|
||||
|
||||
Since django-components is in pre-1.0 development, the public API is not yet frozen.
|
||||
This means that there may be breaking changes between minor versions.
|
||||
We try to minimize the number of breaking changes, but sometimes it's unavoidable.
|
||||
|
||||
When upgrading, please read the [Release notes](../../release_notes).
|
||||
|
||||
## Migrating in pre-v1.0
|
||||
|
||||
If you're on older pre-v1.0 versions of django-components, we recommend doing step-wise
|
||||
upgrades in the following order:
|
||||
|
||||
- [v0.26](../../release_notes/#v026)
|
||||
- [v0.50](../../release_notes/#v050)
|
||||
- [v0.70](../../release_notes/#v070)
|
||||
- [v0.77](../../release_notes/#v077)
|
||||
- [v0.81](../../release_notes/#v081)
|
||||
- [v0.85](../../release_notes/#v085)
|
||||
- [v0.92](../../release_notes/#v092)
|
||||
- [v0.100](../../release_notes/#v0100)
|
||||
- [v0.110](../../release_notes/#v0110)
|
||||
- [v0.140](../../release_notes/#v01400)
|
||||
|
||||
These versions introduced breaking changes that are not backwards compatible.
|
|
@ -208,7 +208,7 @@ When you render a component, you can access everything about the component:
|
|||
|
||||
- Component input: [args, kwargs, slots and context](https://django-components.github.io/django-components/latest/concepts/fundamentals/render_api/#component-inputs)
|
||||
- Component's template, CSS and JS
|
||||
- Django's [context processors](https://django-components.github.io/django-components/latest/concepts/fundamentals/render_api/#request-object-and-context-processors)
|
||||
- Django's [context processors](https://django-components.github.io/django-components/latest/concepts/fundamentals/render_api/#request-and-context-processors)
|
||||
- Unique [render ID](https://django-components.github.io/django-components/latest/concepts/fundamentals/render_api/#component-id)
|
||||
|
||||
```python
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue