Introduce ComponentState (#4386)
* Proof of concept ComponentState * Migrate to createState and createFamilyState * Refactor * Fix * Fix tests * Fix lint * Fix tests * Re-enable coverage
This commit is contained in:
@ -15,17 +15,17 @@ import { isNonNullable } from '~/utils/isNonNullable';
|
||||
export const ClientConfigProvider: React.FC<React.PropsWithChildren> = ({
|
||||
children,
|
||||
}) => {
|
||||
const setAuthProviders = useSetRecoilState(authProvidersState);
|
||||
const setIsDebugMode = useSetRecoilState(isDebugModeState);
|
||||
const setAuthProviders = useSetRecoilState(authProvidersState());
|
||||
const setIsDebugMode = useSetRecoilState(isDebugModeState());
|
||||
|
||||
const setIsSignInPrefilled = useSetRecoilState(isSignInPrefilledState);
|
||||
const setIsSignUpDisabled = useSetRecoilState(isSignUpDisabledState);
|
||||
const setIsSignInPrefilled = useSetRecoilState(isSignInPrefilledState());
|
||||
const setIsSignUpDisabled = useSetRecoilState(isSignUpDisabledState());
|
||||
|
||||
const setBilling = useSetRecoilState(billingState);
|
||||
const setTelemetry = useSetRecoilState(telemetryState);
|
||||
const setSupportChat = useSetRecoilState(supportChatState);
|
||||
const setBilling = useSetRecoilState(billingState());
|
||||
const setTelemetry = useSetRecoilState(telemetryState());
|
||||
const setSupportChat = useSetRecoilState(supportChatState());
|
||||
|
||||
const setSentryConfig = useSetRecoilState(sentryConfigState);
|
||||
const setSentryConfig = useSetRecoilState(sentryConfigState());
|
||||
|
||||
const { data, loading } = useGetClientConfigQuery();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user