@carbonorm/carbonreact 3.2.3 → 3.2.5

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.
@@ -54,6 +54,7 @@ declare const CarbonReact: {
54
54
  } & any, any & iCarbonReactState>;
55
55
  lastLocation: string;
56
56
  whyDidYouRender: boolean;
57
+ getState<S_1>(): S_1;
57
58
  contextType?: import("react").Context<any> | undefined;
58
59
  };
59
60
  export default CarbonReact;
package/dist/index.cjs.js CHANGED
@@ -3882,6 +3882,9 @@ var CarbonReact = (_a = /** @class */ (function (_super) {
3882
3882
  * components' tend to be shorter syntactically and bonus points if it's stateless.
3883
3883
  **/
3884
3884
  }
3885
+ class_1.getState = function () {
3886
+ return CarbonReact.instance.state;
3887
+ };
3885
3888
  class_1.prototype.shouldComponentUpdate = function (nextProps, nextState, _nextContext) {
3886
3889
  changed(this.constructor.name + ' (DigApi)', 'props', this.props, nextProps);
3887
3890
  changed(this.constructor.name + ' (DigApi)', 'state', this.state, nextState);