Skip to content

Commit 07556b9

Browse files
committed
Oh my
1 parent b710419 commit 07556b9

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
lines changed

apps/repl/app/routes/application.ts

+9-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,16 @@ import Route from '@ember/routing/route';
22

33
import { setupTabster } from 'ember-primitives/tabster';
44

5+
const map = new WeakSet();
6+
57
export default class ApplicationRoute extends Route {
6-
async beforeModel() {
7-
setupTabster(this);
8+
// The router is littered with bugs.. so here we only let the model hook run once per instance
9+
model() {
10+
if (!map.has(this)) {
11+
setupTabster(this);
12+
map.add(this);
13+
}
14+
815
document.querySelector('#initial-loader')?.remove();
916
}
1017
}

apps/repl/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@
162162
"html-to-image": "^1.11.13",
163163
"kolay": "^3.0.0",
164164
"limber-ui": "workspace:*",
165+
"tabster": "8.2.0",
165166
"lz-string": "^1.5.0",
166167
"path-browserify": "^1.0.1",
167168
"penpal": "^6.2.2",

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"ember-get-config": "github:mansona/ember-get-config#config-meta-loader",
5656
"ember-auto-import": "^2.9.0",
5757
"ember-repl": "workspace:*",
58+
"ember-primitives": "^0.27.2",
5859
"ember-source": ">= 6.4.0-alpha.3",
5960
"array-includes": "npm:@nolyfill/array-includes@^1",
6061
"array.prototype.findlastindex": "npm:@nolyfill/array.prototype.findlastindex@^1",

pnpm-lock.yaml

+9-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)