Skip to content

Commit

Permalink
fix: avoid to pass apikey
Browse files Browse the repository at this point in the history
avoid pass around component to prevent leaked it
  • Loading branch information
Kikobeats committed Mar 13, 2022
1 parent 75a5911 commit 9e5d634
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/react/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const Card = props => {
media: mediaProp,
setData,
url,
apiKey, // destructuring to avoid pass it
...restProps
} = props

Expand Down

0 comments on commit 9e5d634

Please sign in to comment.