Comments (8)
@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.
I agree. because other chat apps are save editing messages.
from hackatalk.
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.
Great idea! I think this can be provided with sqlite. https://docs.expo.dev/versions/latest/sdk/sqlite/
from hackatalk.
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!
from hackatalk.
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.
I think we can use Recoil in this case although it won't be stored permanently.
from hackatalk.
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)
- bug: wrong spec for multiple files upload HOT 2
- inline dotenv does not work any longer
- Clickable Links / URL HOT 2
- Improve a signIn function to validate a email & password correctly HOT 1
- login page animation starting location issue HOT 3
- Implement a feature which can invite friends in chatroom. HOT 1
- bug: an error alert pop-ups when click "메일 재전송" button HOT 2
- Improvement of notifying sign in error HOT 7
- Status message could be overflowing text content area HOT 3
- License Agreement Message is hidden in website. HOT 5
- Create empty channel (Self Chat?) HOT 3
- Delete messages feature HOT 3
- Delete same channel notification if enter the chat channel. HOT 4
- Old relay types are being used
- Tag users
- Upload movie clip in [Message] HOT 4
- Voice message
- File Upload
- Sunset Alert: Attention Required!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hackatalk.