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

Always false + different props than docs #59

Closed
marcelscruz opened this issue Mar 11, 2021 · 8 comments
Closed

Always false + different props than docs #59

marcelscruz opened this issue Mar 11, 2021 · 8 comments

Comments

@marcelscruz
Copy link

For some reason, I don't seem to be able to get it to work.

I'm currently using the same package version as the example project (1.1.0-beta), even though I tried other versions too, and even copying the exact code from the example, but it doesn't work.

In fact, the props I receive from the ModalRoutingContext.Consumer is different from the one detailed in the docs.

Screenshot 2021-03-11 at 15 43 29

I receive isModal instead of modal.

And isModal is always false.

Am I missing something here?

Any help is very appreciated. Thanks!

@coreAux
Copy link

coreAux commented Jun 15, 2021

Same here. Resolved it by following the steps in this thread.

TL;DR: If you're running Gatsby v.3 make sure to install gatsby-plugin-modal-routing-3 and replace all imports/configs.

@andreisemianiuk
Copy link

I have the same problem! How to fix it?

@coreAux
Copy link

coreAux commented Mar 14, 2022

I have the same problem! How to fix it?

@andreisemianiuk what version Gatsby are you using and what version plugin?
Have you tried following the step in this thread?

@andreisemianiuk
Copy link

"gatsby": "^4.9.3",
gatsby-plugin-modal-routing-3
I've tried this thread, but had the same problem. Actually I don't use it now

@otkstudio
Copy link

@marcelscruz Where you able to resolve this? The steps in the mentioned thread didn't solve my problem. I have the exact issue you had.

@marcelscruz
Copy link
Author

@otkstdio not really, never found a fix and then moved to a different implementation.

@otkstudio
Copy link

@marcelscruz Would you mind sharing the implementation you went with? I'm getting tired of attempting to make this package work. It's become very frustrating.

@marcelscruz
Copy link
Author

@otkstdio sorry, I meant I gave up what I was trying to do 😅

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

No branches or pull requests

4 participants