Open
Description
Version
4.0.12
Reproduction link
Steps to reproduce
- Create route containing multiple
(.*)*
patterns. For examplepath: '/:seoPath(.*)*/c/:categoryId/:facetsPath(.*)*'
- Trigger processing of route containing the
(.*)*
pattern with a long path matching the pattern. - Observe a delay of seconds (~ 20 path segments) or minutes (~ 30 path segments)
This delay occurs when rendering router-link
as well as during route navigation.
This fiddle has ~20 path segments and shows a 1-second delay when loading the page or clicking the link:
https://jsfiddle.net/zcrittendon/j1fmu680/2/
This fiddle has ~30 path segments and shows shows a multi-minute delay (or browser hang) when loading the page:
https://jsfiddle.net/zcrittendon/dmzjvq56/8/
This fiddle has has ~30 path segments, but has no delay because it uses pattern (.*)?
instead of (.*)*
https://jsfiddle.net/zcrittendon/9ze24hx7/5/
What is expected?
Router performance should not be longer than ~1 second even for very long wildcard URL paths.
What is actually happening?
Router performance is extremely long (or hands) for very long wildcard URL paths.
Metadata
Metadata
Assignees
Type
Projects
Status
🆕 Triaging