We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4d439c commit f17ba96Copy full SHA for f17ba96
src/django_idom/templatetags/idom.py
@@ -1,5 +1,5 @@
1
+import functools
2
import json
-import sys
3
from importlib import import_module
4
from urllib.parse import urlencode
5
from uuid import uuid4
@@ -35,6 +35,7 @@ def idom_component(_component_id_, **kwargs):
35
}
36
37
38
+@functools.cache
39
def _register_component(full_component_name: str) -> None:
40
module_name, component_name = full_component_name.rsplit(".", 1)
41
0 commit comments