lib/router.rb in isomorfeus-preact-23.6.0.rc5 vs lib/router.rb in isomorfeus-preact-23.7.0.rc1
- old
+ new
@@ -124,10 +124,10 @@
@router = build_router(props, { original_location: @context[:iso_location] }) if !@router
@rbase = @router[:base]
@original_location = @router[:original_location]
loc = @browser ? current_pathname(@rbase) : current_pathname(@rbase, @original_location)
@prev_hash = @browser ? loc + `location.search` : loc
- Preact.create_element(RouterContext.Provider, { value: { router: @router, location: loc }, children: props[:children] })
+ RPE(Preact.create_element(RouterContext.Provider, { value: { router: @router, location: loc }, children: props[:children] }))
end
component_did_mount do
EVENTS.each do |event|
`window`.JS.addEventListener(event, @check_for_updates_n)