[IMP] component: components key is now static

This is a breaking change!

closes #279
This commit is contained in:
Géry Debongnie
2019-09-10 22:37:08 +02:00
parent 2a40907e35
commit e1acf66143
16 changed files with 548 additions and 530 deletions
+2 -2
View File
@@ -31,7 +31,7 @@ describe("Link component", () => {
</templates>
`);
class App extends Component<any, any, any> {
components = { Link: Link };
static components = { Link: Link };
}
const routes = [{ name: "about", path: "/about" }, { name: "users", path: "/users" }];
@@ -62,7 +62,7 @@ describe("Link component", () => {
</templates>
`);
class App extends Component<any, any, any> {
components = { Link: Link };
static components = { Link: Link };
}
const routes = [{ name: "about", path: "/about" }, { name: "users", path: "/users" }];