Giter VIP home page Giter VIP logo

Comments (6)

itaishalom avatar itaishalom commented on August 18, 2024 1

Friend you did an excellent job!
If you were in Israel, we would hire you, definitely.

from flutter_firebase_chat_core.

demchenkoalex avatar demchenkoalex commented on August 18, 2024

Yeah, this was done to fetch all messages, I though Firebase libs were smart enough to do the optimisations later. We will need to split between the load and update otherwise?

from flutter_firebase_chat_core.

itaishalom avatar itaishalom commented on August 18, 2024

In my implementation, I first of all get all the messages currently on firestore and then listens to the updates:
Check this stackoverflow question I have asked

from flutter_firebase_chat_core.

demchenkoalex avatar demchenkoalex commented on August 18, 2024

Yeah, but this is like for the last added element. What about history or updates?

from flutter_firebase_chat_core.

itaishalom avatar itaishalom commented on August 18, 2024

Well, on my implementation I first off all get all the messages and then the stream listens to updates, use "updatedAt" instead of createdAt to get updated messages. For deleted - I don't have a solution

from flutter_firebase_chat_core.

demchenkoalex avatar demchenkoalex commented on August 18, 2024

Yeah, forgot about deleted ones.. So basically this was done as a proof of concept of the chat and planned as something that will work (and I need all updates so it works). Never planned further optimisations, because making and describing to different people and different use cases how it works - it does not make sense. Every case will be unique and there will never be a perfect library. So I think it should at least work as intended - as an early stage proof of concept, where you can show a working chat to your client and save some money on an initial implementation and then do a complete solution when client has more money to spend :)

from flutter_firebase_chat_core.

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.