Skip to content

Commit 25558aa

Browse files
author
Christian Fuentes
committed
Add README instructions
1 parent b3be46d commit 25558aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ ReactDom.render(
163163
| when | Boolean | false | Make render props `isShow` to be true or false when routing transition occurs. |
164164
| 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. |
165165
| alertMessage | String | '' | Custom browser alert messages. Note that this option only works for **IE**. |
166+
| conditionalPrompt | func | | Custom callback to show the prompt conditionally based on the location. The function receives the location and you can return true to allow the transition or false to show the prompt. |
167+
166168
167169
**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)
168170

0 commit comments

Comments
 (0)