react-dialogger 1.1.132 → 1.1.133

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.
@@ -106,8 +106,14 @@ var PlaceholderWrapper = function (_a) {
106
106
  inProcess: true
107
107
  }), inProcess = _e[0], setInProcess = _e[1];
108
108
  React.useEffect(function () {
109
- var unsubscribe = dialog.processingListener(function () {
110
- setInProcess(dialog.isInProcess());
109
+ var unsubscribe = dialog.processingListener(function (processing) {
110
+ if (inProcess.inProcess !== processing) {
111
+ if (!processing) {
112
+ setTimeout(function () { return setInProcess(dialog.isInProcess()); }, 300);
113
+ return;
114
+ }
115
+ setInProcess(dialog.isInProcess());
116
+ }
111
117
  });
112
118
  // return () => (unsubscribe as any)?.()
113
119
  }, [dialog]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-dialogger",
3
- "version": "1.1.132",
3
+ "version": "1.1.133",
4
4
  "description": "This package is a continuation of the react-araci package. Due to an error, react-araci was removed, and it has been decided to continue under the new package name react-dialogger",
5
5
  "main": "index.js",
6
6
  "author": "Sueleyman Topaloglu",