-
-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(request): add request provider for SSR without adding express as… #206
feat(request): add request provider for SSR without adding express as… #206
Conversation
@valorkin thanks for the PR. Would you mind explaining the process you followed i.e. what does new package |
@@ -14,7 +15,8 @@ export class CookieService { | |||
constructor( | |||
@Inject(DOCUMENT) private document: Document, | |||
// Get the `PLATFORM_ID` so we can check if we're in a browser. | |||
@Inject(PLATFORM_ID) private platformId | |||
@Inject(PLATFORM_ID) private platformId: any, | |||
@Optional() @Inject(REQUEST_PROVIDER_TOKEN) private request: RequestProvider |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@valorkin I see you created Injection Token
and supplied it here. Does it work for CSR along with SSR application? Would you mind creating a sample repo so that we can test this.
@stevermeister take a look at this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, now playing with it here - https://github.com/stevermeister/ssr-coookie
return request; | ||
}; | ||
|
||
export const expressRequestProvider: StaticProvider = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be honest I have very little knowledge on this. I will read more about this
@pavankjadda you can discuss it with @stevermeister |
Closes in favor of #237 |
… a dep to a client lib