remove calls to _get_all_hooks_internal
This commit is contained in:
parent
89c647e8e3
commit
16ae812882
@ -2418,7 +2418,7 @@ class MemoizationLeaf(Component):
|
|||||||
The memoization leaf
|
The memoization leaf
|
||||||
"""
|
"""
|
||||||
comp = super().create(*children, **props)
|
comp = super().create(*children, **props)
|
||||||
if comp._get_all_hooks() or comp._get_all_hooks_internal():
|
if comp._get_all_hooks():
|
||||||
comp._memoization_mode = cls._memoization_mode.copy(
|
comp._memoization_mode = cls._memoization_mode.copy(
|
||||||
update={"disposition": MemoizationDisposition.ALWAYS}
|
update={"disposition": MemoizationDisposition.ALWAYS}
|
||||||
)
|
)
|
||||||
|
@ -182,9 +182,7 @@ class Form(BaseHTML):
|
|||||||
props["handle_submit_unique_name"] = ""
|
props["handle_submit_unique_name"] = ""
|
||||||
form = super().create(*children, **props)
|
form = super().create(*children, **props)
|
||||||
form.handle_submit_unique_name = md5(
|
form.handle_submit_unique_name = md5(
|
||||||
str({**form._get_all_hooks_internal(), **form._get_all_hooks()}).encode(
|
str(**form._get_all_hooks()).encode("utf-8")
|
||||||
"utf-8"
|
|
||||||
)
|
|
||||||
).hexdigest()
|
).hexdigest()
|
||||||
return form
|
return form
|
||||||
|
|
||||||
|
@ -424,7 +424,6 @@ const {_LANGUAGE!s} = match ? match[1] : '';
|
|||||||
|
|
||||||
for _component in self.component_map.values():
|
for _component in self.component_map.values():
|
||||||
comp = _component(_MOCK_ARG)
|
comp = _component(_MOCK_ARG)
|
||||||
hooks.update(comp._get_all_hooks_internal())
|
|
||||||
hooks.update(comp._get_all_hooks())
|
hooks.update(comp._get_all_hooks())
|
||||||
formatted_hooks = MACROS.module.renderHooks(hooks) # type: ignore
|
formatted_hooks = MACROS.module.renderHooks(hooks) # type: ignore
|
||||||
return f"""
|
return f"""
|
||||||
|
Loading…
Reference in New Issue
Block a user