Tell us which versions you are using:
REPLACE does not work properly, it replaces wrong route.
REPLACE to replace the proper route.
I think that this code is problematic here:
const routes = [...parent.routes.slice(0, index - 1), ...parent.routes.slice(index)];
Shouldn't it be this?
const routes = [...parent.routes.slice(0, index), ...parent.routes.slice(index + 1)];
+1 Encountering the same issue
Same here, tested today and indeed, the parent is popped and replaced by the scene given in parameter
+1 same issue on v4.0.6
Most helpful comment
Same here, tested today and indeed, the parent is popped and replaced by the scene given in parameter