Skip to content

Commit db30691

Browse files
authored
Renamed extra to data
1 parent f6a13d3 commit db30691

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

react/render_server.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88

99

1010
class RenderedComponent(object):
11-
def __init__(self, markup, props, extra):
11+
def __init__(self, markup, props, data):
1212
self.markup = markup
1313
self.props = props
14-
self.extra = extra
14+
self.data = data
1515

1616
def __str__(self):
1717
return self.markup
@@ -70,7 +70,7 @@ def render(self, path, props=None, to_static_markup=False, request_headers=None,
7070

7171
markup = obj.pop('markup', None)
7272
err = obj.pop('error', None)
73-
extra = obj
73+
data = obj
7474

7575
if err:
7676
if 'message' in err and 'stack' in err:
@@ -82,7 +82,7 @@ def render(self, path, props=None, to_static_markup=False, request_headers=None,
8282
if markup is None:
8383
raise ReactRenderingError('Render server failed to return markup. Returned: {}'.format(obj))
8484

85-
return RenderedComponent(markup, serialized_props, extra)
85+
return RenderedComponent(markup, serialized_props, data)
8686

8787

8888
render_server = RenderServer()

0 commit comments

Comments
 (0)