Skip to content

Commit

Permalink
fix: remove slot from RouterNavigo
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelkaron committed Jul 1, 2019
1 parent e7be1aa commit 92a18bb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 16 deletions.
8 changes: 1 addition & 7 deletions packages/demo/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/stencil-xstate-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"devDependencies": {
"@stencil/core": "^1.1.3",
"@types/navigo": "^7.0.1",
"navigo": "7.1.2",
"navigo": "^7.1.2",
"xstate": "^4.6.3"
},
"license": "MIT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,5 @@ export const RouterNavigo: <
TSchema extends StateSchema,
TEvent extends EventObject
>(
props: RouterNavigoProps<TContext, TSchema, TEvent>,
children?: Element[]
) => Element = (props, children) => (
<xstate-router-navigo {...props}>{children}</xstate-router-navigo>
);
props: RouterNavigoProps<TContext, TSchema, TEvent>
) => Element = props => <xstate-router-navigo {...props} />;
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,7 @@ export class XstateRouterNavigo implements ComponentInterface {
}}
// pass down config to router
{...{ options, routes, stateRenderer, componentRenderer }}
>
<slot />
</xstate-router>
/>
);
}
}

0 comments on commit 92a18bb

Please sign in to comment.