We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cab14c4 commit dad063aCopy full SHA for dad063a
src/generators/observe.js
@@ -7,7 +7,9 @@ export default function(initialize) {
7
const dispose = initialize(change);
8
9
if (dispose != null && typeof dispose !== "function") {
10
- throw new Error("invalid dispose");
+ throw new Error(typeof dispose.then === "function"
11
+ ? "async initializers are not supported"
12
+ : "initializer returned something, but not a dispose function");
13
}
14
15
function change(x) {
0 commit comments