@umijs/renderer-react 4.0.0-canary.20231019.1 → 4.0.0-canary.20231019.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/browser.js +3 -1
  2. package/package.json +1 -1
package/dist/browser.js CHANGED
@@ -183,7 +183,9 @@ var getBrowser = function getBrowser(opts, routesElement) {
183
183
  // use ?. since routes patched with patchClientRoutes is not exists in opts.routes
184
184
  if (!isFirst && (_opts$routes$id = opts.routes[id]) !== null && _opts$routes$id !== void 0 && _opts$routes$id.hasServerLoader) {
185
185
  // 在有basename的情况下__serverLoader的请求路径需要加上basename
186
- fetch((basename.endsWith('/') ? basename : basename + '/') + '__serverLoader?route=' + id).then(function (d) {
186
+ fetch((basename.endsWith('/') ? basename : basename + '/') + '__serverLoader?route=' + id, {
187
+ credentials: 'include'
188
+ }).then(function (d) {
187
189
  return d.json();
188
190
  }).then(function (data) {
189
191
  // setServerLoaderData when startTransition because if ssr is enabled,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/renderer-react",
3
- "version": "4.0.0-canary.20231019.1",
3
+ "version": "4.0.0-canary.20231019.2",
4
4
  "description": "@umijs/renderer-react",
5
5
  "homepage": "https://github.com/umijs/umi/tree/master/packages/renderer-react#readme",
6
6
  "bugs": "https://github.com/umijs/umi/issues",