Skip to content

Commit 92e726b

Browse files
authored
[EphemeralPresenceManager] Add support for hovercard presence (#11554)
### WHY are these changes introduced? This PR unblocks [HoverCard](#10504) from tracking presence using the `useEphemeralPresenceManager` hook. The component and hook logic are both agnostic to the actual list of supported keys defined in the default state object, so no additional tests are needed.
1 parent a50b17d commit 92e726b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/nervous-laws-sparkle.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@shopify/polaris': patch
3+
---
4+
5+
Added support for hovercard tracking to `EphemeralPresenceManager`

polaris-react/src/components/EphemeralPresenceManager/EphemeralPresenceManager.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ type PresenceCounter = {
2020

2121
const defaultState = {
2222
tooltip: 0,
23+
hovercard: 0,
2324
};
2425

2526
export function EphemeralPresenceManager({

0 commit comments

Comments
 (0)