Skip to content

Commit

Permalink
changelog & memo
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewMusgrave committed May 15, 2019
1 parent f0b3338 commit 9ba173e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions UNRELEASED-V4.md
Expand Up @@ -31,6 +31,7 @@ Use [the changelog guidelines](https://git.io/polaris-changelog-guidelines) to f
- Updated `AppProvider` to no longer use `componentWillReceiveProps`([#1255](https://github.com/Shopify/polaris-react/pull/1255))
- Upgraded the `Navigation` component from legacy context API to use createContext ([#1402](https://github.com/Shopify/polaris-react/pull/1402))
- Updated `ThemeProvider` to no longer use `componentWillReceiveProps`([#1254](https://github.com/Shopify/polaris-react/pull/1254))
- Removed `withContext` from `ContextualSaveBar` ([#1498](https://github.com/Shopify/polaris-react/pull/1498))
- Removed unused context from `Scrollable` ([#1253](https://github.com/Shopify/polaris-react/pull/1253))
- Upgraded the `Banner`, `Card`, and `Modal` components from legacy context API to use createContext ([#786](https://github.com/Shopify/polaris-react/pull/786))
- Refactored `Frame` and its subcomponents to use the `createContext` API instead of legacy context ([#803](https://github.com/Shopify/polaris-react/pull/803))
Expand Down
4 changes: 2 additions & 2 deletions src/components/ContextualSaveBar/ContextualSaveBar.tsx
Expand Up @@ -7,7 +7,7 @@ import {ContextualSaveBarProps, FrameContext} from '../Frame';
// crashing if we write `ContextualSaveBar extends React.Component<ContextualSaveBarProps>`
interface Props extends ContextualSaveBarProps {}

export default function ContextualSaveBar({
export default React.memo(function ContextualSaveBar({
message,
saveAction,
discardAction,
Expand All @@ -34,4 +34,4 @@ export default function ContextualSaveBar({
}, []);

return null;
}
});

0 comments on commit 9ba173e

Please sign in to comment.