dirk-cfx-react 1.1.33 → 1.1.35

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/dist/index.js CHANGED
@@ -237,6 +237,16 @@ var useSettings = create(() => ({
237
237
  "#0b33ff"
238
238
  ]
239
239
  }));
240
+ registerInitialFetch("GET_SETTINGS", void 0).then((data) => {
241
+ console.log("Fetched settings:", data);
242
+ if (!data) {
243
+ console.warn("No settings data received from GET_SETTINGS fetch.");
244
+ return;
245
+ }
246
+ useSettings.setState({
247
+ ...data
248
+ });
249
+ });
240
250
 
241
251
  // src/utils/fetchNui.ts
242
252
  async function fetchNui(eventName, data, mockData) {