troch / route-node

A package to create a tree of named routes
MIT License
20 stars 15 forks source link

The buildPathFromSegments function is not respecting queryParams options #21

Closed chibihoho closed 6 years ago

chibihoho commented 6 years ago
const searchPart = build(searchParamsObject)

It looks like the queryParams options are not being passed in here leading to the default options always being used. Is this on purpose? Is there a way to make this function use the queryParams options initialized with the router?

troch commented 6 years ago

Hey @chibihoho, thanks for raising this issue. It has now been fixed and released (v3.1.1). If you are using router5, patch is going to be released now.