-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react: add inbox hooks #659
Conversation
|
🦋 Changeset detectedLatest commit: 1585de4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
ca223f0
to
42d1823
Compare
42d1823
to
1020b7d
Compare
1020b7d
to
bcf61c1
Compare
bcf61c1
to
ef1bf46
Compare
@@ -74,6 +75,7 @@ | |||
}, | |||
"peerDependencies": { | |||
"@lens-protocol/metadata": "^1.0.0", | |||
"@xmtp/react-sdk": "^3.0.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we in a position to make this also optional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
they are, see below
"peerDependenciesMeta": {
"@xmtp/react-sdk": {
"optional": true
}
},
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you please double check the import chain? basically only importing the relevant hook should end up importing the XMTP SDK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I checked, all xmtp imports are in the inbox folder, which is even exported as @lens-protocol/react-web/inbox
. I also tested example web app without xmtp peer dep and of course without inbox hooks, it all works fine.
ef1bf46
to
2aa5358
Compare
1f6aa1c
to
8dff6e4
Compare
8dff6e4
to
c06c421
Compare
65fbd34
to
d7f9cf7
Compare
d7f9cf7
to
f7ef5cd
Compare
f7ef5cd
to
77612ca
Compare
f93ca74
to
ddc4e32
Compare
ddc4e32
to
b7bf12d
Compare
d7b8bfa
to
51a6cf5
Compare
1962541
to
0aa2ece
Compare
0aa2ece
to
b5b9537
Compare
b5b9537
to
c411e72
Compare
@cesarenaldi the issue with xmtp messages constant rerender was solved, see last commit, this PR is then ready from my side. |
function EnhanceConversation({ conversation, walletAddress }: EnhanceConversationProps) { | ||
const { conversation: enhancedConversation, isLoading } = useEnhanceConversation({ | ||
conversation, | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can it be just useEnhanceConversation(conversation)
like we discussed. Any rationale for keeping the object?
export function ConversationComposer({ peerProfile }: ConversationComposerProps) { | ||
const { startConversation, isLoading, error } = useStartLensConversation({ | ||
peerProfile, | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about here? Thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
everywhere else in the sdks we use objects as arguments to make them open for future additions without breaking changes, so the same thought is here
e3e3b75
to
fdbd301
Compare
fdbd301
to
1585de4
Compare
No description provided.