@solidjs/router 0.12.2 → 0.12.3

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.
@@ -59,13 +59,11 @@ export function action(fn, name) {
59
59
  retry() {
60
60
  setResult(undefined);
61
61
  const p = fn(...variables);
62
- p.then(handler, handler);
63
- return p;
62
+ return p.then(handler, handler);
64
63
  }
65
64
  })
66
65
  ]);
67
- p.then(handler, handler);
68
- return p;
66
+ return p.then(handler, handler);
69
67
  }
70
68
  const url = fn.url ||
71
69
  (name && `https://action/${name}`) ||
package/dist/index.js CHANGED
@@ -1076,12 +1076,10 @@ function action(fn, name) {
1076
1076
  retry() {
1077
1077
  setResult(undefined);
1078
1078
  const p = fn(...variables);
1079
- p.then(handler, handler);
1080
- return p;
1079
+ return p.then(handler, handler);
1081
1080
  }
1082
1081
  }]);
1083
- p.then(handler, handler);
1084
- return p;
1082
+ return p.then(handler, handler);
1085
1083
  }
1086
1084
  const url = fn.url || name && `https://action/${name}` || (!isServer ? `https://action/${hashString(fn.toString())}` : "");
1087
1085
  return toAction(mutate, url);
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "Ryan Turnquist"
7
7
  ],
8
8
  "license": "MIT",
9
- "version": "0.12.2",
9
+ "version": "0.12.3",
10
10
  "homepage": "https://github.com/solidjs/solid-router#readme",
11
11
  "repository": {
12
12
  "type": "git",