GithubHelp home page GithubHelp logo

Comments (7)

Sikandarkhan avatar Sikandarkhan commented on July 20, 2024

User is being logged out everytime he quits the app. Let me know, If I can get help from localStorage () function?

from parse-sdk-js.

andrewimm avatar andrewimm commented on July 20, 2024

Under the hood, we update an in-memory cache of the current user, but we don't save back to disk on each successful server save.

The solution is to special-case the save of a ParseUser object, checking to see if it is the current user; if it is, we can save back to localStorage before resolving the outermost Promise.

from parse-sdk-js.

GauravButola avatar GauravButola commented on July 20, 2024

Is this a regression in the latest version? Because; I have 1.5.0 in one of my projects where saving the current parse user saves the object to localStorage as well, but on the other project where I'm using 1.6.7 I'm having this issue; the object doesn't persist in localStorage.

Same for fetch() the latest version only saves the current user to memory not localStorage but the earlier version I'm using updates localStorage as well.

from parse-sdk-js.

andrewimm avatar andrewimm commented on July 20, 2024

Just pushed a fix. We will release 1.6.9 later today with these issues resolved.

from parse-sdk-js.

bradyhigginbotham avatar bradyhigginbotham commented on July 20, 2024

Is 1.6.9 still being released? I see the tag in this repo, but site and CDN only have 1.6.7. Really need this fix in. Thanks!

from parse-sdk-js.

h4rm avatar h4rm commented on July 20, 2024

Hi, just checking in to ask if 1.6.9 will be available soon? The CDN is still at 1.6.7 and I am also eager to distribute the fixed version.

from parse-sdk-js.

passcod avatar passcod commented on July 20, 2024

The CDN is at 1.6.14 at time of writing, the (recommended way of getting this aka the) npm module is at 1.6.14, this is fixed and should be closed.

from parse-sdk-js.

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.