@iowas/toolpad 1.0.2 → 1.0.3

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.
@@ -112,6 +112,15 @@ function createGlobalState(initialState) {
112
112
  };
113
113
  }
114
114
 
115
+ // src/toolpad-utils/warnOnce.ts
116
+ var history = /* @__PURE__ */ new Set();
117
+ function warnOnce(msg) {
118
+ if (!history.has(msg)) {
119
+ history.add(msg);
120
+ console.warn(msg);
121
+ }
122
+ }
123
+
115
124
  export {
116
125
  __spreadValues,
117
126
  __spreadProps,
@@ -121,5 +130,6 @@ export {
121
130
  createProvidedContext,
122
131
  useAssertedContext,
123
132
  useTraceUpdates,
124
- createGlobalState
133
+ createGlobalState,
134
+ warnOnce
125
135
  };