Skip to content

Conversation

@Muhamed-Ragab
Copy link

@Muhamed-Ragab Muhamed-Ragab commented Jul 5, 2025

This commit introduces the useBroadcastChannel hook, which enables communication between different browser tabs or windows using the BroadcastChannel API.

The hook provides a simple interface for sending and receiving messages, with options for handling messages and errors.

A demo and tests have also been added to showcase the functionality of the hook.

[中文版模板 / Chinese template]

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / documentation update
  • Demo update
  • TypeScript definition update
  • Bundle size optimization
  • Performance optimization
  • Enhancement feature
  • Internationalization
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Other (about what?)

🔗 Related issue link

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English
🇨🇳 Chinese

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

This commit introduces the `useBroadcastChannel` hook, which enables communication between different browser tabs or windows using the BroadcastChannel API.

The hook provides a simple interface for sending and receiving messages, with options for handling messages and errors.

A demo and tests have also been added to showcase the functionality of the hook.
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

2 participants