@salesforce/lwc-adapters-uiapi 1.229.0 → 1.231.0
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.
- package/dist/main.js +7 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -13128,7 +13128,7 @@ function fulfill(existing, incoming) {
|
|
|
13128
13128
|
const batchRequestWithSingleRequest = isSingleBatchRecordRequest(existingUrlParams) &&
|
|
13129
13129
|
isSingleRecordRequest(urlParams) &&
|
|
13130
13130
|
incomingUrlRecords[0] === existingUrlRecords[0];
|
|
13131
|
-
if (!batchRequestWithSingleRequest) {
|
|
13131
|
+
if (!batchRequestWithSingleRequest || isRestrictedPathCondition(existingPath, path)) {
|
|
13132
13132
|
return false;
|
|
13133
13133
|
}
|
|
13134
13134
|
}
|
|
@@ -13171,6 +13171,12 @@ function isSingleBatchRecordRequest(urlParams) {
|
|
|
13171
13171
|
function isSingleRecordRequest(urlParams) {
|
|
13172
13172
|
return hasOwnProperty.call(urlParams, 'recordId');
|
|
13173
13173
|
}
|
|
13174
|
+
function isRestrictedPathCondition(existingPath, path) {
|
|
13175
|
+
// should not dedupe getRecordUi and getRecord as both of their representation is different
|
|
13176
|
+
// records call cannot digest response of getRecordUi
|
|
13177
|
+
return ((existingPath.includes('/record-ui') && path.includes('/records')) ||
|
|
13178
|
+
(existingPath.includes('/records') && path.includes('/record-ui')));
|
|
13179
|
+
}
|
|
13174
13180
|
|
|
13175
13181
|
const createResourceRequest$16 = function getUiApiRecordsByRecordIdCreateResourceRequest(config) {
|
|
13176
13182
|
return {
|