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

Error while trying to select an image block #1009

Closed
Tug opened this issue May 21, 2019 · 1 comment · Fixed by #1012
Closed

Error while trying to select an image block #1009

Tug opened this issue May 21, 2019 · 1 comment · Fixed by #1012
Assignees
Labels
[Type] Bug Something isn't working
Milestone

Comments

@Tug
Copy link
Contributor

Tug commented May 21, 2019

We have some regressions with the last PR since it brought other changes from gutenberg master.

I’ve seen this one when trying to select a non-empty image block or picking an image from the library (and dismissing the modal since it wasn't working), tested on android:

Invariant Violation: Hooks can only be called inside the body of a function component. (https://fb.me/react-invalid-hook-call)

This error is located at:
    in FillComponent (at fill.js:73)
    in Fill (at slot-fill/index.js:13)
    in BlockControlsFill (at block-controls/index.js:14)
    in BlockControlsFill (at context.js:57)
    in IfBlockEditSelected(BlockControlsFill) (at edit.native.js:297)
    in RCTView (at View.js:45)
    in View (at edit.native.js:294)
    in TouchableWithoutFeedback (at edit.native.js:281)
    in ImageEdit (at edit.native.js:18)
    ...
@Tug Tug added the bugfix label May 21, 2019
@Tug Tug added this to the v1.6 milestone May 21, 2019
@Tug Tug self-assigned this May 21, 2019
@Tug Tug added [Type] Bug Something isn't working and removed bugfix labels May 21, 2019
@Tug Tug changed the title Error while trying to upload an image Error while trying to select an image block May 21, 2019
@hypest
Copy link
Contributor

hypest commented May 22, 2019

I cannot reproduce this on 95add06.

@Tug Tug closed this as completed in #1012 May 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants