score:0

i promised myself i'd circle back and help you out once i found a solution, as i was experiencing the same problem and i believe we're working from the same reference example.

i exhausted the following:

  • matching the exact package includes from the reference project.
  • literally pulling the reference project itself and trying to modify it.
  • trying every possible permutation of react component styles.
  • trying every possible permutation of routing configuration.

i finally dug into the found router source and decided to give the following a try (with great success):

import { createbrowserrouter } from 'found'

...

const router = createbrowserrouter({
    historymiddleware: [querymiddleware],
    routeconfig: routes
})

i don't know if there's currently an unaddressed bug in the farce router that is used by the reference application or if perhaps it has some quietly unfulfilled dependency on redux (as it uses redux internally), but this router version worked fine for me!


Related Query

More Query from same tag