• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

SAP / ui5-webcomponents-react / 9890609870

11 Jul 2024 11:30AM CUT coverage: 79.701% (-0.9%) from 80.604%
9890609870

Pull #6061

github

web-flow
Merge 357334feb into 3822beed4
Pull Request #6061: refactor: replace `Toolbar` with UI5 Web Component

2532 of 3761 branches covered (67.32%)

4586 of 5754 relevant lines covered (79.7%)

72781.43 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

80.0
/packages/main/src/internal/OverflowPopoverContext.ts
1
import { createContext, useContext } from 'react';
2

3
const SYMBOL = Symbol.for('@ui5/webcomponents-react/OverflowPopoverContext');
362✔
4

5
interface IOverflowPopoverContext {
6
  inPopover: boolean;
7
}
8

9
const OverflowPopoverContext = createContext<IOverflowPopoverContext>({ inPopover: false });
362✔
10

11
export function getOverflowPopoverContext(): typeof OverflowPopoverContext {
12
  globalThis[SYMBOL] ??= OverflowPopoverContext;
177✔
13
  return globalThis[SYMBOL];
177✔
14
}
15

16
export function useOverflowPopoverContext() {
17
  return useContext(getOverflowPopoverContext());
×
18
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc