You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| when | Boolean | false | Make render props `isShow` to be true or false when routing transition occurs. |
137
+
| alertBeforeUnload | Boolean | false | Turn on the browser alert. Technically, when you **refresh** or **close** browser window, only browser itself can detect and popup alert for you. If you want to remind the user when doing actions above, turn on this option. |
138
+
| alertMessage | String | '' | Custom browser alert messages. Note that this option only works for **IE**. |
137
139
138
140
**react-goodbye** will handle all of the code logic for you. Use provided `render props` to show whatever you want (modal, lightbox, dialog, popup, etc)
| isShow | Boolean | false | while `when` prop is true, `isShow` will be true when routing transition occurs. |
143
-
| handleOk | function | | allow routing transition and make `isShow` to be **false** again |
144
-
| handleCancel | function | | block routing transition and make `isShow` to be **false** again |
145
-
| pass | function | | low-level api under `handleOk` and `handleCancel`; pass **true** will allow routing transitions, while pass **false** will not. |
| isShow | Boolean | false | While `when` prop is true, `isShow` will be true when routing transition occurs. You can put your dialog component here. |
145
+
| handleOk | function | | Allow routing transition and make `isShow` to be **false** again. |
146
+
| handleCancel | function | | Block routing transition and make `isShow` to be **false** again. |
147
+
| pass | function | | Low-level api under `handleOk` and `handleCancel`; pass **true** will allow routing transitions, while pass **false** will not. |
0 commit comments