mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-24 02:36:00 +00:00
Remove unused mapStateToProps to avoid rerender in hot loop
This commit is contained in:
parent
8dd98d4c1a
commit
b083a94e5d
1 changed files with 1 additions and 3 deletions
|
|
@ -12,8 +12,6 @@ const ActionButtons = props => (
|
|||
</div>
|
||||
);
|
||||
|
||||
const mapStateToProps = state => state.media;
|
||||
|
||||
const mapDispatchToProps = { previous, play, pause, stop, next };
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(ActionButtons);
|
||||
export default connect(null, mapDispatchToProps)(ActionButtons);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue