Skip to content

Commit

Permalink
Merge pull request #80 from Workiva/greglittlefield-wf-patch-1
Browse files Browse the repository at this point in the history
UIP-2399 Release over_react 1.11.2
  • Loading branch information
aaronlademann-wf authored Jun 16, 2017
2 parents 40f4735 + 127d97e commit 5bebc8b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# OverReact Changelog

## 1.11.2

> [Complete `1.11.2` Changeset](https://github.com/Workiva/over_react/compare/1.11.1...1.11.2)
__Improvements__

* [e805b79b](https://github.com/Workiva/over_react/commit/e805b79b56f90989194ebf0a7951357e7b40f75c) Null-coalesce `isDisposedOrDisposing` to ease consumer test breakages

## 1.11.1

> [Complete `1.11.1` Changeset](https://github.com/Workiva/over_react/compare/1.11.0...1.11.1)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

```yaml
dependencies:
over_react: "^1.11.1"
over_react: "^1.11.2"
```
2. Add the `over_react` [transformer] to your `pubspec.yaml`.
Expand Down
7 changes: 5 additions & 2 deletions lib/src/component_declaration/flux_component.dart
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,15 @@ abstract class _FluxComponentMixin<TProps extends FluxUiProps> implements Batche

handlers.forEach((store, handler) {
String message = 'Cannot listen to a disposed/disposing Store.';
assert(!store.isDisposedOrDisposing, '$message This can be caused by BatchedRedraws '

var isDisposedOrDisposing = store.isDisposedOrDisposing ?? false;

assert(!isDisposedOrDisposing, '$message This can be caused by BatchedRedraws '
'mounting the component asynchronously after the store has been disposed. If you are '
'in a test environment, try adding an `await window.animationFrame;` before disposing your '
'store.');

if (store.isDisposedOrDisposing) _logger.warning(message);
if (isDisposedOrDisposing) _logger.warning(message);

StreamSubscription subscription = store.listen(handler);
_subscriptions.add(subscription);
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: over_react
version: 1.11.1
version: 1.11.2
description: A library for building statically-typed React UI components using Dart.
homepage: https://github.com/Workiva/over_react/
authors:
Expand Down

0 comments on commit 5bebc8b

Please sign in to comment.