The magical reactive component framework for Django ✨
MIT License
Bot releases are hidden (Show)
template_html
to specify inline template HTML on the component.resolved
method which only fires once even when there are multiple actions, e.g. during a debounce.Published by adamghill 8 months ago
force_render
in nested children for direct views #663.dataclasses
and Pydantic
BaseModel
#649 by siliconcow.startunicorn
command to prevent spamming users and handle folder creation for nested components #642 by felipmartins.Breaking changes
kwarg
argument passed into a component will be considered None
instead of being converted to a string.<!-- If `abcde` is not a variable in the template context, it will get set to `name` as `None` whereas before it would get set as 'abcde' -->
{% unicorn 'hello' name=abcde %}
Published by adamghill 10 months ago
This release could not have been made possible without the generous support of @winrid and @om-proptech. Thank you for sponsoring me and believing in django-unicorn
! It also includes critical improvements to nested components from @imankulov.
ValidationError
or just a string instead of requiring a the dict
version.force_render
and $parent
.Breaking changes
Child components will not by default render the parent component anymore. If this is required for your child component, specify self.parent.force_render = True
in any action that requires the parent to re-render. This change will reduce network bandwidth and isolates the amount of re-rendering required for nested components.
Published by adamghill 12 months ago
Published by adamghill 12 months ago
unicorn:id
to merge elements with morphdom
.Published by adamghill about 1 year ago
Published by adamghill about 1 year ago
Unicorn
together in a component (#597 by imankulov).Published by adamghill about 1 year ago
List
/list
type annotations for component actions and fields (#582).Breaking changes
Published by adamghill over 1 year ago
ByteString
(#534) by hauntsaninja.loading
on elements other than the current action element ([#512]https://github.com/adamghill/django-unicorn/pull/512) by bazubii).poll.disable
would not work correctly in some instances.Published by adamghill almost 2 years ago
Published by adamghill almost 2 years ago
pp
import in Python 3.7.Published by adamghill about 2 years ago
Published by adamghill over 2 years ago