Skip to content

Commit 7a9b6f6

Browse files
committed
fixed reshow not pass baseUrl
1 parent d266c71 commit 7a9b6f6

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "reshow",
3-
"version": "0.13.0-beta.18",
3+
"version": "0.13.0-beta.19",
44
"description": "Flux Reducer Present Library",
55
"main": "./build/cjs/src/index.js",
66
"module": "./build/es/src/index.js",

ui/molecules/Reshow.jsx

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,27 @@ class Reshow extends PureComponent {
100100
if (hasError) {
101101
return null;
102102
}
103-
const { fallback, themes, ajax, webSocketUrl } = this.props;
103+
const {
104+
baseUrl,
105+
staticVersion,
106+
fallback,
107+
themes,
108+
ajax,
109+
webSocketUrl,
110+
} = this.props;
104111

105112
return (
106-
<Return initStates={["baseUrl", "staticVersion", "themePath"]}>
107-
{() => (
113+
<Return
114+
baseUrl={baseUrl}
115+
staticVersion={staticVersion}
116+
initStates={["baseUrl", "staticVersion"]}
117+
>
118+
{(data) => (
108119
<AjaxPage
109120
callback={update}
110121
/*State*/
122+
baseUrl={data.baseUrl}
123+
staticVersion={data.staticVersion}
111124
themePath={this.getPath()}
112125
/*Props*/
113126
fallback={fallback}

0 commit comments

Comments
 (0)