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.
WATCH_SOURCE
1 parent 8aa45bf commit 9fd0264Copy full SHA for 9fd0264
django_react/render.py
@@ -105,14 +105,14 @@ def render_component(
105
if not os.path.exists(path_to_source):
106
raise ComponentSourceFileNotFound(path_to_source)
107
108
+ if watch_source is None:
109
+ watch_source = WATCH_SOURCE
110
+
111
bundled_component = None
112
if bundle or translate or watch_source:
113
bundled_component = bundle_component(path_to_source, translate=translate, watch=watch_source)
114
path_to_source = bundled_component.get_assets()[0]['path']
115
- if watch_source is None:
- watch_source = WATCH_SOURCE
-
116
if json_encoder is None:
117
json_encoder = DjangoJSONEncoder
118
0 commit comments