GithubHelp home page GithubHelp logo

Comments (3)

vxncetxn avatar vxncetxn commented on August 17, 2024

UPDATE: I have found a working fix that roughly involves moving the code that sets the atom value based on localStorage from the onMount function of Nano Stores to the onMount function of Solid instead. However, these modifications require changes to the framework-agnostic @nanostores/persistent package just to fix a highly-specific issue involving Solid SSR environments, which is why I have not opened a PR to upstream them.

Instead, in the meantime before a more appropriate fix is applied which can retain the agnostic nature of @nanostores/persistent, I have published a library (and corresponding NPM package) that serves as a drop-in replacement for both @nanostores/persistent and @nanostores/solid which adds this use-case of persistent atoms/maps to Solid SSR environments.

from solid.

jagu-sayan avatar jagu-sayan commented on August 17, 2024

Got same problem 🤔

from solid.

NexRX avatar NexRX commented on August 17, 2024

It tooks ages to final see your solution @vxncetxn and I'm so thankful you shared it.
Have you moved to a different fix since? Just asking because i see the last update was a while to the NPM package.

from solid.

Related Issues (10)

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.