Skip to content

fix: allow useNotificationTarget to return undefined#3046

Open
MartinCupela wants to merge 2 commits intomasterfrom
fix/useNotificationTarget-can-return-undefined
Open

fix: allow useNotificationTarget to return undefined#3046
MartinCupela wants to merge 2 commits intomasterfrom
fix/useNotificationTarget-can-return-undefined

Conversation

@MartinCupela
Copy link
Contributor

🎯 Goal

It should be possible to try to consume ChatViewContext without throwing an error. Many applications will not be using ChatView component. Furthermore, we cannot fall through to channel-list in useNotificationTarget, but rather should correctly identify presence of ChannelListContext and return undefined otherwise.

Closes REACT-914

@github-actions
Copy link

github-actions bot commented Mar 23, 2026

Size Change: +58 B (+0.01%)

Total Size: 442 kB

Filename Size Change
./dist/cjs/emojis.js 2.96 kB -2 B (-0.07%)
./dist/cjs/index.js 237 kB -38 B (-0.02%)
./dist/WithAudioPlayback-dVwuLGMF.js 88.4 kB +88.4 kB (new file) 🆕
./dist/WithAudioPlayback-TERIQpZ6.js 0 B -88.3 kB (removed) 🏆
ℹ️ View Unchanged
Filename Size
./dist/audioProcessing-BbOs2wMd.js 1.32 kB
./dist/cjs/mp3-encoder.js 1.27 kB
./dist/css/index.css 46.9 kB
./dist/css/v2/emoji-mart.css 1.84 kB
./dist/css/v2/emoji-replacement.css 300 B
./dist/css/v2/index.css 39.4 kB
./dist/css/v2/index.layout.css 22.8 kB

compressed-size-action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant