@arc-js/config-manager 0.0.9 → 0.0.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.0.9",
6
+ "version": "0.0.91",
7
7
  "description": "CONFIG-MANAGER est un système de gestion de configuration modulaire pour les applications React avec TypeScript/JavaScript. Il fournit une gestion centralisée des configurations, un chargement dynamique des modules, et une intégration transparente avec les variables d'environnement.",
8
8
  "main": "index.js",
9
9
  "keywords": [],
@@ -7,11 +7,9 @@ export const ConfigManagerProvider = ({
7
7
  configs,
8
8
  children
9
9
  }) => {
10
+ setConfigManagerConfig(configs);
10
11
  const [service] = useState(() => new ConfigService());
11
12
  const [isLoading, setIsLoading] = useState(true);
12
- useEffect(() => {
13
- setConfigManagerConfig(configs);
14
- }, [configs]);
15
13
  useEffect(() => {
16
14
  const initialize = async () => {
17
15
  setIsLoading(true);
@@ -12,13 +12,11 @@ export const ConfigManagerProvider: React.FC<{
12
12
  configs,
13
13
  children,
14
14
  }) => {
15
+ setConfigManagerConfig(configs);
16
+
15
17
  const [service] = useState(() => new ConfigService());
16
18
  const [isLoading, setIsLoading] = useState(true);
17
19
 
18
- useEffect(() => {
19
- setConfigManagerConfig(configs);
20
- }, [configs]);
21
-
22
20
  useEffect(() => {
23
21
  const initialize = async () => {
24
22
  setIsLoading(true);