Giter VIP home page Giter VIP logo

Comments (8)

0916dhkim avatar 0916dhkim commented on July 22, 2024 1

@meohyun2 In that case, we probably need to use indexed DB for web & expo-sdk-sqlite for mobile. An abstraction layer (how about DraftStore class?) should be added for clean interface.

from hackatalk.

qkreltms avatar qkreltms commented on July 22, 2024

I agree. because other chat apps are save editing messages.

from hackatalk.

0916dhkim avatar 0916dhkim commented on July 22, 2024

Looks like a good idea. I think this should be stored on client side as key-value pairs (chatId, draftString).
One thing we can decide is if we want to persist it or not. For example, draft messages can be persisted inside local storage/app storage, or they can be ephemeral inside React context.

from hackatalk.

hyochan avatar hyochan commented on July 22, 2024

Great idea! I think this can be provided with sqlite. https://docs.expo.dev/versions/latest/sdk/sqlite/

from hackatalk.

meohyun2 avatar meohyun2 commented on July 22, 2024

is it okay to use expo-sdk-sqlite to web page? if we maintain this feature like slack draft organizing all editing message, we should use sqlite. but if we make this feature as tiny feature, we can consider react-async-storage library.

and i found expo-sqlite is not compatible with web in expo document!
image

from hackatalk.

hyochan avatar hyochan commented on July 22, 2024

Oh SQLite does not work on web 😞

You can still use AsyncStorage but thinking on the issue again, I don't think we need storage for this. How about just supporting this as a context provider? @0916dhkim @meohyun2

They can only live when users are using the app and throw away when the user is not using HackaTalk anymore.

from hackatalk.

hyochan avatar hyochan commented on July 22, 2024

I think we can use Recoil in this case although it won't be stored permanently.

from hackatalk.

stale avatar stale commented on July 22, 2024

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions.

from hackatalk.

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.