There should be a simpler alternative to the(.*)?
pattern
#1301
Labels
discussion
This problem still needs more feedback
(.*)?
pattern
#1301
Version
4.0.12
Reproduction link
jsfiddle.net
Steps to reproduce
(.*)*
patterns. For examplepath: '/:seoPath(.*)*/c/:categoryId/:facetsPath(.*)*'
(.*)*
pattern with a long path matching the pattern.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.
The text was updated successfully, but these errors were encountered: