Designing a React Integration for Miew: Seeking Ideas and Collaboration #602
Replies: 2 comments
-
Here’s our current approach for integrating Miew into React:
This approach ensures that Miew is reinitialized whenever there are changes to its configuration (options). However, working this way raises some challenges:
|
Beta Was this translation helpful? Give feedback.
-
We’re also aware of another approach that could be explored for integrating Miew into React:
This approach could simplify accessing and interacting with Miew, but it introduces some complexity:
We’re interested in hearing thoughts on whether this approach might be more effective or how it could be improved to work seamlessly in React apps. Let us know what you think! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We’re working on integrating Miew into React and would love to gather ideas and feedback from the community.
Our key objectives:
Challenges:
Miew has its own internal state and supports event subscriptions and external settings manipulation. However, React’s lifecycle and state management paradigm complicates the architectural choices.
Should we sync Miew’s state with React state, or rely on Miew’s internal state and expose events/settings hooks for React?
Two deliverables are expected from this discussion:
For reference, we’re also considering an example solution in Miew’s library that demonstrates best practices for React integration or offers alternative approaches.
We’d love to hear your insights on how we can solve these challenges effectively! Any suggestions or ideas are welcome.
Beta Was this translation helpful? Give feedback.
All reactions