Skip to content

Commit d266c71

Browse files
committed
move failback to reshow
1 parent f7cdf28 commit d266c71

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
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.17",
3+
"version": "0.13.0-beta.18",
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: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ const update = (params) => {
4141
};
4242

4343
class Reshow extends PureComponent {
44+
static defaultProps = {
45+
fallback: "div",
46+
};
47+
4448
static getDerivedStateFromError(error) {
4549
return { hasError: true };
4650
}
@@ -96,7 +100,7 @@ class Reshow extends PureComponent {
96100
if (hasError) {
97101
return null;
98102
}
99-
const { onError, themes, ajax, webSocketUrl } = this.props;
103+
const { fallback, themes, ajax, webSocketUrl } = this.props;
100104

101105
return (
102106
<Return initStates={["baseUrl", "staticVersion", "themePath"]}>
@@ -106,6 +110,7 @@ class Reshow extends PureComponent {
106110
/*State*/
107111
themePath={this.getPath()}
108112
/*Props*/
113+
fallback={fallback}
109114
themes={themes}
110115
ajax={ajax}
111116
webSocketUrl={webSocketUrl}

0 commit comments

Comments
 (0)