Giter Site home page Giter Site logo

Comments (6)

JulianKingman avatar JulianKingman commented on July 20, 2024

Sure, I'll set something up :)

I'm not clear on what your second question means, but anything that was stored by react-native-meteor will added to redux (and persisted, if you're using redux-persist). If you want to know whether the user is logged in when the app starts, however, you can check for the login token, which is saved to AsyncStorage by react-native-meteor.

from react-native-meteor-offline.

balibou avatar balibou commented on July 20, 2024

Ahah great !

For the second point here is an explanation concerning authentication (note that I can get the token from Asyncstorage without redux, but I need to keep a user object when offline and set it at initialstate):

  • Firstly, I tried to use redux-persist without your package, but the thing is I have problem with the calculateData() from Mixin.js in react-native-meteor ...
  • Secondly I tried with your package, but I have a problem retrieving states from redux (undefined states).

from react-native-meteor-offline.

JulianKingman avatar JulianKingman commented on July 20, 2024

I added an example app, courtesy of @spencercarli's boilerplate (https://github.com/spencercarli/react-native-meteor-boilerplate). Search the example project tree for 'react-native-meteor-redux' and you'll find all the places I changed the code.

from react-native-meteor-offline.

JulianKingman avatar JulianKingman commented on July 20, 2024

FYI there's a fix in the latest one, so try to update to 1.1.12, then let me know if you still have an issue.

from react-native-meteor-offline.

balibou avatar balibou commented on July 20, 2024

Perfect ! Thanks a lot I will try that as soon as possible !

i think I have already installed the package in 1.1.12. I will check my code again ...
Thanks again !

from react-native-meteor-offline.

JulianKingman avatar JulianKingman commented on July 20, 2024

The latest example will actually let you log in now :)

from react-native-meteor-offline.

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.