Skip to content

fix: reused getRkey function in embed component#6591

Merged
mozzius merged 1 commit into
bluesky-social:mainfrom
MathurAditya724:main
Nov 21, 2024
Merged

fix: reused getRkey function in embed component#6591
mozzius merged 1 commit into
bluesky-social:mainfrom
MathurAditya724:main

Conversation

@MathurAditya724
Copy link
Copy Markdown
Contributor

I've updated the Embed component to reuse the getRkey function instead of relying on AtUri. This change enhances reusability and helps reduce the bundle size slightly.

I came across this improvement while working on https://github.com/rhinobase/react-bluesky and thought it would be a helpful optimization.

Copy link
Copy Markdown
Member

@mozzius mozzius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getRkey also uses AtUri, so it seems unlikely it will impact bundle size, but no harm in make it more consistent

@mozzius mozzius merged commit f67e00a into bluesky-social:main Nov 21, 2024
@gaearon gaearon mentioned this pull request Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants