@instructure/ui-react-utils
Version:
A React utility library made by Instructure Inc.
18 lines • 973 B
TypeScript
import React from 'react';
import type { DeterministicIdProviderValue } from './DeterministicIdContextProvider';
/**
* @deprecated Id generation no longer uses an instance counter map. Ids are now
* generated with React's built-in `useId` (see `useDeterministicId` /
* `withDeterministicId`), which is SSR-safe and hydration-stable without any
* shared counter. This map is retained only for backwards compatibility and is
* no longer read; it will be removed in the next major version.
*/
declare const defaultDeterministicIDMap: DeterministicIdProviderValue;
/**
* @deprecated This context is no longer consumed by the id generation utilities
* and has no effect. It is retained only for backwards compatibility and will be
* removed in the next major version.
*/
declare const DeterministicIdContext: React.Context<DeterministicIdProviderValue>;
export { DeterministicIdContext, defaultDeterministicIDMap };
//# sourceMappingURL=DeterministicIdContext.d.ts.map