-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 when updating state inside onDragStart #617
Labels
Comments
Can you please provide a stand alone example on codesandbox? Hard to know
what is causing your issue otherwise
…On Thu, 5 Jul 2018 at 12:16 am, Nikola Telkedzhiev ***@***.***> wrote:
I'm calling setState inside onDragStart and I'm getting the following
error:
Error: Invariant failed: Attempting to move in an unsupported phase
PREPARING
What version of React are you using?
16.3.2
What version of react-beautiful-dnd are you running?
8.0.1
What browser are you using?
Chrome
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#617>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACFN7Vmsy2iIyecpc0IGMxdz7niy8WAgks5uDM5AgaJpZM4VCqOc>
.
|
Thank you! @alexreardon |
All good for you now? |
I now get an error when I try to update the state so that Error: Trying to set droppable isEnabled to true but it is already true. |
Can you please post an independent example? I am keen to resolve this |
I have a fix - PR incoming |
Works fine now! Thanks once again. |
You’re welcome! Thanks for the independent example. It made it easy to
action
…On Wed, 11 Jul 2018 at 9:09 pm, Nikola Telkedzhiev ***@***.***> wrote:
Works fine now! Thanks once again.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#617 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACFN7RdGAChBtS77M97KlHQ8hv4Rx755ks5uFdzmgaJpZM4VCqOc>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm calling setState inside onDragStart and I'm getting the following error:
Error: Invariant failed: Attempting to move in an unsupported phase PREPARING
What version of
React
are you using?16.3.2
What version of
react-beautiful-dnd
are you running?8.0.1
What browser are you using?
Chrome
The text was updated successfully, but these errors were encountered: