File size: 463 Bytes
f56a29b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import { useEffect } from 'react';
import { useSettingsStore } from '@/lib/store/settings';
/**
* Fetches server-configured providers on mount and merges into settings store.
* Renders nothing — purely a side-effect component.
*/
export function ServerProvidersInit() {
const fetchServerProviders = useSettingsStore((state) => state.fetchServerProviders);
useEffect(() => {
fetchServerProviders();
}, [fetchServerProviders]);
return null;
}
|