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