You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which @ngrx/* package(s) are the source of the bug?
data
Minimal reproduction of the bug/regression with instructions
Use of DefaultDataService methods with parameter (options?: HttpOptions) dosn't work.
Example dont work;
super.getAll({httpParams: {fromObject: {language: 'en'}} })
this works:
super.execute('GET', this.entitiesUrl, null, { params: new HttpParams().set('language', 'en') })
or
super.getAll({ params: new HttpParams().set('language', language: 'en') } as any)
Expected behavior
HttpOptions should correctly passed to the http client
Versions of NgRx, Angular, Node, affected browser(s) and operating system(s)
@Tom-Neo could you elaborate with "does work" and "doesn't work" please.
What's the expected result, and which result do you get instead?
Ideally, this is a runnable example.
Also, if this is a bug feel free to create a Pull Request with a fix.
I'm using a derivative of the DefaultDataService class and wanted to use the methods' parameter options.
The http options are not passed correctly or the type is not correct.
How to properly use options to pass HttpParams?
Which @ngrx/* package(s) are the source of the bug?
data
Minimal reproduction of the bug/regression with instructions
Use of DefaultDataService methods with parameter (options?: HttpOptions) dosn't work.
Example dont work;
super.getAll({httpParams: {fromObject: {language: 'en'}} })
this works:
super.execute('GET', this.entitiesUrl, null, { params: new HttpParams().set('language', 'en') })
or
super.getAll({ params: new HttpParams().set('language', language: 'en') } as any)
Expected behavior
HttpOptions should correctly passed to the http client
Versions of NgRx, Angular, Node, affected browser(s) and operating system(s)
"@ngrx/data": "^16.2.0",
"@angular/core": "^16.2.6",
Other information
No response
I would be willing to submit a PR to fix this issue
The text was updated successfully, but these errors were encountered: