File tree Expand file tree Collapse file tree 4 files changed +15
-4
lines changed
lib/src/component_declaration Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 11# OverReact Changelog
22
3+ ## 1.11.2
4+
5+ > [ Complete ` 1.11.2 ` Changeset] ( https://github.com/Workiva/over_react/compare/1.11.1...1.11.2 )
6+
7+ __ Improvements__
8+
9+ * [ e805b79b] ( https://github.com/Workiva/over_react/commit/e805b79b56f90989194ebf0a7951357e7b40f75c ) Null-coalesce ` isDisposedOrDisposing ` to ease consumer test breakages
10+
311## 1.11.1
412
513> [ Complete ` 1.11.1 ` Changeset] ( https://github.com/Workiva/over_react/compare/1.11.0...1.11.1 )
Original file line number Diff line number Diff line change 4242
4343 ``` yaml
4444 dependencies :
45- over_react : " ^1.11.1 "
45+ over_react : " ^1.11.2 "
4646 ` ` `
4747
48482. Add the ` over_react` [transformer] to your `pubspec.yaml`.
Original file line number Diff line number Diff line change @@ -152,12 +152,15 @@ abstract class _FluxComponentMixin<TProps extends FluxUiProps> implements Batche
152152
153153 handlers.forEach ((store, handler) {
154154 String message = 'Cannot listen to a disposed/disposing Store.' ;
155- assert (! store.isDisposedOrDisposing, '$message This can be caused by BatchedRedraws '
155+
156+ var isDisposedOrDisposing = store.isDisposedOrDisposing ?? false ;
157+
158+ assert (! isDisposedOrDisposing, '$message This can be caused by BatchedRedraws '
156159 'mounting the component asynchronously after the store has been disposed. If you are '
157160 'in a test environment, try adding an `await window.animationFrame;` before disposing your '
158161 'store.' );
159162
160- if (store. isDisposedOrDisposing) _logger.warning (message);
163+ if (isDisposedOrDisposing) _logger.warning (message);
161164
162165 StreamSubscription subscription = store.listen (handler);
163166 _subscriptions.add (subscription);
Original file line number Diff line number Diff line change 11name : over_react
2- version : 1.11.1
2+ version : 1.11.2
33description : A library for building statically-typed React UI components using Dart.
44homepage : https://github.com/Workiva/over_react/
55authors :
You can’t perform that action at this time.
0 commit comments