-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# v5.0.0 Migration Guide | ||
|
||
The only breaking change in this version is that `FlashMessage` now expects separate `children` and `isError` props, rather than a single `message` prop. This allows the component to be used without needing to use `redux-flash`. | ||
|
||
You should update any instances of `FlashMessage` like so: | ||
|
||
(Note: this change is not necessary if you are using `FlashMessageContainer` instead of `FlashMessage` directly.) | ||
|
||
```jsx | ||
|
||
// Before, where "message" was a redux-flash message object: | ||
<FlashMessage message={message} /> | ||
|
||
// After: | ||
<FlashMessage isError={message.isError} {message.props}>{message.message}</FlashMessage> | ||
|
||
``` |