|
@@ -8,7 +8,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union
|
|
from reflex import constants
|
|
from reflex import constants
|
|
from reflex.components.chakra.forms.input import Input
|
|
from reflex.components.chakra.forms.input import Input
|
|
from reflex.components.chakra.layout.box import Box
|
|
from reflex.components.chakra.layout.box import Box
|
|
-from reflex.components.component import Component
|
|
|
|
|
|
+from reflex.components.component import Component, MemoizationLeaf
|
|
from reflex.constants import Dirs
|
|
from reflex.constants import Dirs
|
|
from reflex.event import CallableEventSpec, EventChain, EventSpec, call_script
|
|
from reflex.event import CallableEventSpec, EventChain, EventSpec, call_script
|
|
from reflex.utils import imports
|
|
from reflex.utils import imports
|
|
@@ -138,7 +138,7 @@ class UploadFilesProvider(Component):
|
|
tag = "UploadFilesProvider"
|
|
tag = "UploadFilesProvider"
|
|
|
|
|
|
|
|
|
|
-class Upload(Component):
|
|
|
|
|
|
+class Upload(MemoizationLeaf):
|
|
"""A file upload component."""
|
|
"""A file upload component."""
|
|
|
|
|
|
library = "react-dropzone@14.2.3"
|
|
library = "react-dropzone@14.2.3"
|