We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9e5ab8 commit 6a12a37Copy full SHA for 6a12a37
django_unicorn/components/unicorn_template_response.py
@@ -247,6 +247,11 @@ def render(self):
247
for child in descendant.children:
248
init_script = f"{init_script} {child._init_script}"
249
json_tags.append(child._json_tag)
250
+ # We need to delete this property here as it can cause RecursionError
251
+ # when pickling child component. Tag element has previous_sibling
252
+ # and next_sibling which would also be pickled and if they are big,
253
+ # cause RecursionError
254
+ del child._json_tag
255
descendants.append(child)
256
257
script_tag = soup.new_tag("script")
0 commit comments