Skip to content

Commit

Permalink
[cascading] from release/11.5.0-rc to main (#2514)
Browse files Browse the repository at this point in the history
<!--
{"currentBranch":"release/11.5.0-rc","targetBranch":"main","bypassReviewers":true,"isConflicting":false}
-->

## Cascading from release/11.5.0-rc to main

The configuration requests the cascading to bypass reviewer in case of
CI success.
To not bypass the reviewing process, please check the following
checkbox:

- [ ] <!-- !cancel bypass! --> 🚫 stop reviewing process
bypass for this Pull Request

---

<small>This Pull Request has been generated with ❤️ by the
[Otter](https://github.com/AmadeusITGroup/otter) cascading tool.</small>
  • Loading branch information
matthieu-crouzet authored Nov 25, 2024
2 parents 0bcc6aa + d302b28 commit 1dbf243
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/@o3r/configuration/src/core/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ export function getConfiguration<T extends Record<string, unknown>>(defaultValue
return deepFill(defaultValue, configOverride);
}),
distinctUntilChanged((prev, current) => JSON.stringify(prev) === JSON.stringify(current)),
shareReplay(1)
shareReplay({ refCount: true, bufferSize: 1 })
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class ConfigurationObserver<T extends Configuration> implements Observer<
this.observable = this.subscriber
.pipe(
configurationService ? configurationService.getComponentConfig(configId, defaultConfig) : getConfiguration(defaultConfig),
shareReplay(1)
shareReplay({ refCount: true, bufferSize: 1 })
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export class LocalizationService {
public translate(key: string, interpolateParams?: object) {
return this.getKey(key).pipe(
switchMap((translationKey) => this.getTranslationStream(translationKey, interpolateParams)),
shareReplay(1)
shareReplay({ refCount: true, bufferSize: 1 })
);
}
}

0 comments on commit 1dbf243

Please sign in to comment.