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

JedWatson / react-select / dfbda7c9-f865-42e7-9726-48c679f6fc87

10 Jan 2024 12:10AM UTC coverage: 76.25% (+0.4%) from 75.827%
dfbda7c9-f865-42e7-9726-48c679f6fc87

Pull #5842

circleci

itsdouges
chore: fix tests
Pull Request #5842: Fix event handling with react-beautiful-dnd

663 of 1046 branches covered (0.0%)

1037 of 1360 relevant lines covered (76.25%)

1939.0 hits per line

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

0.0
/packages/react-select/src/NonceProvider.tsx
1
import * as React from 'react';
2
import { useMemo } from 'react';
3
import { ReactNode } from 'react';
4
import { CacheProvider } from '@emotion/react';
5
import createCache from '@emotion/cache';
6

7
interface NonceProviderProps {
8
  nonce: string;
9
  children: ReactNode;
10
  cacheKey: string;
11
}
12

13
export default ({ nonce, children, cacheKey }: NonceProviderProps) => {
14
  const emotionCache = useMemo(
×
15
    () => createCache({ key: cacheKey, nonce }),
×
16
    [cacheKey, nonce]
17
  );
18
  return <CacheProvider value={emotionCache}>{children}</CacheProvider>;
×
19
};
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