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

JedWatson / react-select / 14b9164f-7ebc-4af3-a108-73c5186d143a

pending completion
14b9164f-7ebc-4af3-a108-73c5186d143a

Pull #6045

circleci

jarodsim
feat: add changeset
Pull Request #6045: fix: allow loadOptions('') to be called when input is cleared

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