adamghill / django-unicorn

The magical reactive component framework for Django ✨
https://www.django-unicorn.com
MIT License
2.37k stars 118 forks source link

Load script tags from Child Component #257

Open tribor1990 opened 3 years ago

tribor1990 commented 3 years ago

Hello, I am quite new to the world of Components and Django-Unicorn. (Btw: Great work keep it up!)

First to what I want to do:

I have a parent component that should only display 1 child component if a entered password is correct. The parent is a simple text-input field and a button to check the password.

While playing around I've encountered the following issue:

If I set the init value of the password check to True both components render as expected. And fully functionally. When I hide the child component initially and only load it when the password is correct though, the child component seems not able to execute its "onload" methods. Also a library imported via a Githubissues.

  • Githubissues is a development platform for aggregating issues.