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

Help using map with react-redux boilerplate #208

Closed
OkuraSt opened this issue Feb 16, 2016 · 3 comments
Closed

Help using map with react-redux boilerplate #208

OkuraSt opened this issue Feb 16, 2016 · 3 comments

Comments

@OkuraSt
Copy link

OkuraSt commented Feb 16, 2016

Hi everyone,
Im trying to use this package with react-redux boilerplate https://github.com/erikras/react-redux-universal-hot-example, however I get an error like this:

Warning: setState(...): Can only update a mounted or mounting component. This usually means you called setState() on an unmounted component. This is a no-op. Please check the code for the undefined component.

On that repository I read an issue suggesting that, the map rendering should be made only on client side, so I added a state variable to modify on componentDidMount but the error persist. I made a gist with the example: https://github.com/OkuraSt/example-maps

The map component name is AsyncMap and it is added on Home.js. I hope someone could give a hint.
Thanks for your time

@tomchentw
Copy link
Owner

Link to https://github.com/OkuraSt/example-maps is dead.

@OkuraSt
Copy link
Author

OkuraSt commented Feb 22, 2016

Sorry for the late response,
I was able to make the map appear by setting the height and witdh to a number of pixels. My problem now is to resize to 100% height after the map has loaded, I was seeing this post, #161 where you indicate new functionality with the triggerEvent but the error I get on my code is that "react-google-maps/libs/utils" is not found.
Could you help me with some directions on how to do this?
Thanks in advance for your time.

@tomchentw
Copy link
Owner

Please update your version of react-google-maps. https://github.com/tomchentw/react-google-maps/blob/v4.10.3/lib/utils/index.js

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

2 participants