Giter VIP home page Giter VIP logo

Comments (6)

bondz avatar bondz commented on September 20, 2024 1

Would look into this and get back to you. Thanks for providing a repro.

from react-static-google-map.

lkbr avatar lkbr commented on September 20, 2024 1

I can confirm that this is fixed. Thank you very much!

from react-static-google-map.

bondz avatar bondz commented on September 20, 2024

Try using v0.4.2

from react-static-google-map.

lkbr avatar lkbr commented on September 20, 2024

I appreciate you looking into this. SSR is working! However, now client side doesn't work on Next.js Apps. See: https://next-map-doceyulxpe.now.sh. Updated code is here: lkbr/next-map@824bc5b

On load, the map is fine, but navigating (this happens client side see: https://github.com/zeit/next.js#with-link) between pages loads a blank map. Refreshing (which forces SSR) loads a complete map.

If you feel this is starting to be more of a Next.js issue than something you'd like to support with your package, I completely understand.

from react-static-google-map.

bondz avatar bondz commented on September 20, 2024

You're right, found what the problem is. Turns our Next makes some changes to the children props which breaks some of the assumptions I made earlier. I'm looking into it and might have a fix for it soon. Thanks for the repro, it has helped immensely.

from react-static-google-map.

bondz avatar bondz commented on September 20, 2024

@lkbr try v0.5.0 Should fix the issue.

from react-static-google-map.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.