Comments (3)
Hey @tudorbertiean,
Thanks for reporting this issue. We're investigating this and will update with more information as soon as we can.
from components.
Hey @tudorbertiean ,
So looking into this issue, the mailbox component will not attempt to make a fetch request for thread message bodies if the thread information is passed in via the all_threads
prop. So you must include the thread message bodies yourself.
There are however some issues:
- There should not be an error (as per your screenshot)
- The
threadClicked
event got dispatched twice
Both of the above two issues have been resolved in #315.
So for your case, you'll have to do either:
(a) pass in all_threads
with full message bodies
(b) use the threadClicked
and messageClicked
dispatched events to identify the thread & message clicked and hydrate them accordingly with the message bodies.
For example:
mailbox.addEventListener("threadClicked", (v) => {
let { thread } = v.detail;
thread = {
...thread,
messages: thread.messages.map((m) => {
m.body = "THIS IS A TEST";
return m;
})
}
});
This will make it so that each message will have the body "THIS IS A TEST".
from components.
Great, thanks so much for the quick responses and turnaround @AaronDDM!
from components.
Related Issues (20)
- [BUG] Mailbox component overflows width of parent container. HOT 4
- [BUG] Email component failing with 422 HOT 3
- [BUG] Nylas Email Component Rendering Issues / Performance HOT 5
- [BUG] Loading more than one Email component causes page to crash.
- Query params from url are being added to request query params HOT 2
- [BUG] Nylas Email Thread Overflows Container Width HOT 6
- [BUG] "window is not defined" in non-browser context HOT 3
- yarn storybook fails from fresh clone/install HOT 1
- Add Attachments support in Email component HOT 4
- Ability to reply in the same thread in email component HOT 2
- Is there an option to listen to back button press? HOT 2
- Feature Request: Mailbox with custom list of threads
- Feature Request: Performant external data HOT 1
- Active development? HOT 1
- Agenda component - how to make it full calendar view
- [BUG] Long delay after clicking a draft
- [BUG] Composer change event is not fired when all text is deleted HOT 1
- Feature Request:
- New feature: Understanding the knowledge base might be hard
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 components.