by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Jon Haro
    @eleventhaus
    Should I use firestore.status.requesting instead? What's the best way to do that?
    Scott Prue
    @prescottprue
    @eleventhaus That may be a bug. Would you mind opening an issue pointing to your version and how you connect? I would maybe fallback to using data for now since that should work with isLoaded and they get set at the same time
    Jon Haro
    @eleventhaus
    Neither data or ordered on firestore are synced to isLoaded. I believe isLoaded is synced to when the firebase profile loads. I'll open an issue. Thank you for your help!
    Scott Prue
    @prescottprue
    @eleventhaus Well, it isn't really "synced", it actually depends on which prop you are passing to it, but yeah the issue sounds great.
    Richard Scotten
    @rscotten
    @prescottprue I want to build an infinite scroll list using listeners using the orderBy and startAfter options on firestore.setListener(). I've hacked something together using storeAs, but it's not pretty. Is there an example or recommended way to do this?
    Scott Prue
    @prescottprue
    @rscotten you should checkout react-waypoint. Using that to attach queries manually should work
    Richard Scotten
    @rscotten
    @prescottprue thanks!
    Richard Scotten
    @rscotten
    @prescottprue ah, react-waypoint is a cool library but I'm already using react-virtualized. Sorry for being unclear. My issue concerns needing a different storeAs name for every page of listeners because, without it, each listener call overwrites the results from the previous page/listener. So, my workaround is to use storeAs and create a unique store name for each listener. For example, I store the first page in storeAs: 'items.0', 2nd batch in storeAs: 'items.1', 3rd in storeAs: 'items.2', and so on. I'd rather be able to store all listener results in storeAs: 'items', which makes my mapStateToProps simple: items: state.firestore.ordered.items || []. Otherwise I have to reduce all the state.firestore.ordered.items.n stores into items. I'm using reselect to memoize this, but it would be nicer if each page of listeners could just append the new page of items to state.firestore.ordered.items rather than using a different storeAs for each listener. Is that possible using a config option like mergeOrdered, allowMultipleListeners, or oneListenerPerPath?
    Dustin Graves
    @dustingraves
    Hey for the starter expo/react native, is there a quick way to get started with login and auth?
    Richard Scotten
    @rscotten
    Dustin Graves
    @dustingraves
    @rscotten thanks I will take a look
    Serhii Palash
    @serhiipalash

    @prescottprue is there anything like profileParamsToListen in react-redux-firebase?

    I want to add global listener to the app on connections/${profile.connectionId} node in database.

    There is profileParamsToPopulate Api. The thing is that it doesn't listen some prop under profile continually, but only populates it once on every profile update.

    jasonejavier
    @jasonejavier
    Hi good day! I'm having a hard time implementing data filter using firestore. Can someone help me?
    Scott Prue
    @prescottprue
    @serhiipalash there is not the ability to listen for any populates currently, but that is something that has been on the roadmap for a while
    Jascha Brinkmann
    @jaschaio_twitter
    @jasonejavier what exactly do you mean by "data filter"?
    I've found firestores filtering capabilities very limited so depending on your needs it might not even be possible with firestore alone
    Scott Prue
    @prescottprue
    I agree, not sure what is meant by “data filter”. Personally have found firestore’s querying to be enough for most filtering/sorting I have needed, but it does sometimes mean adding new parameters to your objects
    Marcus Lundgren
    @marluo
    Hey
    trying to use store.getState() in firestoreconnect, but can't seem to get it working. using 3.0
    uhm
    work please?
    Marcus Lundgren
    @marluo
    Ugh, anyways props and store seems to be referencing the same object
    store === props is true
    so im not sure what im doing wrong, or what i should do differentley, cant seem to access store. Maybe not available in 3.0?
    Marcus Lundgren
    @marluo
    ignore everything i just said
    Marcus Lundgren
    @marluo
    is there any way to specify the key when storing it in redux?
    image.png
    so i dont have to deal with the weird -LD5..
    Scott Prue
    @prescottprue
    @marluo using storeAs you can do that
    Marcus Lundgren
    @marluo
    Well i tired doing that but only came this far
    image.png
    saved it as lols obviously
    Also - i tried accessing the store in firebaseconnect, but cant seem to do that either. Is this changed in 3.0? same issue as above
    Marcus Lundgren
    @marluo
    any way to customize key it gets written to in uploadFiles?
    Scott Prue
    @prescottprue
    You should use connect before firebaseConnect instead of using getState in firebaseConnect (there are a number of known issues with that method, so yeah it hasn’t been tested for v3)
    Marcus Lundgren
    @marluo
    tried, throwed me an error.
    Anyways i solved it anyways.
    Marcus Lundgren
    @marluo
    image.png
    trying to work with pagination, they do indeed get ordered right when ordering by upvotes
    but when im trying to do ["upvotes", "desc"] everything just gets weird, and it only seems to order it by the limit you have set
    i.e 1-10 only ordering these posts
    10-20, only ordering those posts
    but if i dont use desc, it works, but obviously in reversed order.
    Hazim Ali
    @MrHazimAli
    Hye, I want to ask regarding actionTypes.CLEAR_DATA to clear firestore data.. I use this one as a callback after user logout.. when I open another screen after that, the screen is calling firestoreConnect with collection but my firestore did not update again. does this is normal behaviour or did I did something wrong ?
    Screen Shot 2019-04-25 at 3.01.10 AM.png
    Screen Shot 2019-04-25 at 3.00.49 AM.png
    Marcus Lundgren
    @marluo
    Uncaught Error: Supplied prop/s "dispatch" are reserved for internal firebaseConnect() usage
    wohoo
    apperentley deleting dispatch when rendering worked
    for my privateroute