Christian González

Results 109 comments of Christian González

I'm sorry, I have switched to HTMX and don't use Unicorn any more.

What I forgot: the context (and hence `{{ counter }}` is updated correctly in the visible HTML. Just the value in `updated*`is lagging behind.

I was changing the value from the front-end - just by clicking the "inc" button...

sure, one can call it manually if needed.

This also is true for components that simply raises errors, e.g. in `mount()`. ```python class FooView(UnicornView): namespace="" def mount(self): """Check if component was called with a namespace attribute: {% unicorn...

Aaaah, after days of searching, I finally wrote an issue. Just to find the possible solution 5 minutes afterwords myself. I used another Python version (3.6 instead of my default...

Bad Hack(TM): patch Unicorn, to let UnicornView inherit from FormView instead of TemplateView. ```python class MyForm(Form) email = forms.EmailField() # Unicorn Component class EmailView(UnicornView): form = MyForm ``` And in...

It's loading two different libraries... And Bs4 won't be supported forever, as BS2 is no longer supported. This will happen for BS4 too at some point in time. And it...

A working mutation is: ```py def mutate(self, info, **kwargs): if not info.context.user.is_authenticated: return CreateMessage(status=403) message = kwargs.get('message', '').strip() # Here we would usually use Django forms to validate the input...

I don't know if I understood correctly. But this is one of the thins tat are unnecessarily complicated in Sockpuppet IMHO. First, at the template, you have to set the...