@itwin/presentation-hierarchies
Version:
A package for creating hierarchies based on data in iTwin.js iModels.
23 lines • 932 B
JavaScript
;
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.shareReplayWithErrors = shareReplayWithErrors;
const rxjs_1 = require("rxjs");
/**
* This is doing exactly the same as the standard `shareReplay` from `rxjs`, except that
* source is not retried on error.
*
* @internal
*/
function shareReplayWithErrors() {
return (0, rxjs_1.share)({
connector: () => new rxjs_1.ReplaySubject(),
resetOnError: false,
resetOnComplete: false,
resetOnRefCountZero: false,
});
}
//# sourceMappingURL=ShareReplayWithErrors.js.map