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 0574e9c commit 6a9901cCopy full SHA for 6a9901c
packages/solid-router/src/Transitioner.tsx
@@ -108,11 +108,11 @@ export function Transitioner() {
108
),
109
)
110
111
- Solid.createRenderEffect(
+ Solid.createComputed(
112
Solid.on(
113
[isPagePending, previousIsPagePending],
114
([isPagePending, previousIsPagePending]) => {
115
- // emit onBeforeRouteMount
+ // emit onBeforeRouteMount - using createComputed to run before component render effects
116
if (previousIsPagePending.previous && !isPagePending) {
117
router.emit({
118
type: 'onBeforeRouteMount',
0 commit comments