Remove encryption of empty props to allow server island cacheability#12956
Remove encryption of empty props to allow server island cacheability#12956ascorbic merged 4 commits intowithastro:mainfrom
Conversation
🦋 Changeset detectedLatest commit: 077f174 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
CodSpeed Performance ReportMerging #12956 will not alter performanceComparing Summary
|
|
@kaytwo your tests are failing, because |
|
Can't really tell from the failures what the problem is with your tests. Looks like the fetches are failing, are you fetching in the same way as the other tests? |
|
Also this needs a changeset which you can add via |
It's making dev server requests in the build tests, where the dev server isn't running |
|
Oh right, it should be doing it like this then (as the tests before it do): const app = await fixture.loadTestAdapterApp();
const request = new Request('http://example.com/'); |
|
sorry about the confusing tests, I lost a fight with git and pushed the wrong commits at first. Should be good now on tests + fix. |
Changes
This change removes the encryption of
{}in the case of a server island with no props. Fixes #12949.Testing
Added two tests: one test that ensures components with props keep getting them re-encrypted, and one where components without props don't have an empty encryption passed through to them.
Docs
Nominally a bugfix, brings the docs mention of caching in line with reality.