15.0.0-rc.2 #335
LayZeeDK
announced in
Announcements
15.0.0-rc.2
#335
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Features
StrictQueryParams
for query parameters instead ofStrictRouteParams
(feat!: use strict query params #331)Array query parameters like
?size=m&size=l&size=xl
are now correctly resolved toreadonly string[]
instead ofstring
.BREAKING CHANGES
RouterStore#queryParams$
andMinimalActivatedRouteSnapshot#queryParams
useStrictQueryParams
RouterStore#queryParams$
andMinimalActivatedRouteSnapshot#queryParams
useStrictQueryParams
instead ofStrictRouteParams
. Members are of typestring | readonly string[] | undefined
instead ofstring | undefined
.The TypeScript compiler will fail to compile code that does not handle the string array type.
BEFORE:
AFTER:
RouterStore#selectQueryParam
useStrictQueryParams
RouterStore#selectQueryParam
useStrictQueryParams
instead ofStrictRouteParams
. The returned value is of typestring | readonly string[] | undefined
instead ofstring | undefined
.The TypeScript compiler will fail to compile code that does not handle the string array type.
BEFORE:
AFTER:
This discussion was created from the release 15.0.0-rc.2.
Beta Was this translation helpful? Give feedback.
All reactions