Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ensure placeholder is hidden #45

Closed
wants to merge 1 commit into from

Conversation

u3u
Copy link
Contributor

@u3u u3u commented Dec 4, 2020

抱歉 上次修的还有点小问题 useEffect 可能会在 getImgRef 后执行 😢

@vercel
Copy link

vercel bot commented Dec 4, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/react-component/image/deimaqlge
✅ Preview: https://image-git-fix-placeholder.react-component.vercel.app

@@ -150,7 +147,7 @@ const ImageInternal: CompoundedComponent<ImageProps> = ({

React.useEffect(() => {
if (isCustomPlaceholder) {
Copy link
Member

Choose a reason for hiding this comment

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

如果可能在后面执行是不是在这加个判断就行

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

我看最新的代码已经重构了 这个应该可以 close 了

@afc163 afc163 closed this Jan 7, 2021
@u3u u3u mentioned this pull request Jan 25, 2021
u3u added a commit to u3u/image that referenced this pull request Mar 17, 2021
shaodahong pushed a commit that referenced this pull request Mar 18, 2021
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.

3 participants