"use strict";

exports.__esModule = true;
exports.safelyMakeObservable = void 0;
var _mobx = require("mobx");
/**
 * Safely calls makeObservable, preventing errors if the object
 * has already been made observable (e.g., in React Strict Mode or HMR)
 */
const safelyMakeObservable = (target, annotations, options) => {
  if ((0, _mobx.isObservable)(target)) {
    return target;
  }
  return (0, _mobx.makeObservable)(target, annotations, options);
};
exports.safelyMakeObservable = safelyMakeObservable;
//# sourceMappingURL=safelyMakeObservable.js.map