Home > @cascadiacollections/fluentui-compat
fluentui-compat package
Functions
Function |
Description |
---|---|
Creates an optimized bundled icon component that renders either a filled or regular icon based on the | |
Hook to provide an Async instance that is automatically cleaned up on dismount. | |
Hook to store a boolean value and generate callbacks for setting the value to true, false, or toggling it. This hook is optimized for performance using idiomatic React patterns: - The identity of the callbacks will always stay the same across renders - Uses | |
Hook to initialize and return a constant value with stable identity. Unlike This is equivalent to setting a private member in a class constructor. | |
Hook to force update a function component by triggering a re-render. **⚠️ Performance Warning**: This hook will intentionally cause re-renders and should be used sparingly with clear intent. Overuse may introduce performance issues and long-running tasks. Consider using React's built-in state management patterns (useState, useReducer) or memoization strategies (useMemo, useCallback) before resorting to force updates. **🔧 Development Tools**: In development builds, this hook provides enhanced debugging features: - **Performance monitoring**: Tracks call frequency and warns about excessive usage - **Rapid call detection**: Alerts when multiple calls occur within a single frame (16ms) - **DevTools integration**: Displays call count in React DevTools for debugging - **Profiler marks**: Creates performance markers for React Profiler analysis - **Cleanup warnings**: Detects components with short lifetimes but many force updates This implementation uses | |
Hook to provide performance optimized timeout management with automatic cleanup. This hook provides a wrapper around |
Interfaces
Interface |
Description |
---|---|
Updater callbacks returned by |
Type Aliases
Type Alias |
Description |
---|---|
The timeout ID type that works across different environments | |