@equinor/fusion-query
Advanced tools
Comparing version 0.2.3 to 0.2.4
import { map } from 'rxjs/operators'; | ||
import { ReactiveObservable } from '@equinor/fusion-observable'; | ||
import { FlowSubject } from '@equinor/fusion-observable'; | ||
import { createReducer } from './create-reducer'; | ||
@@ -12,3 +12,3 @@ const getLastTransaction = (state) => { | ||
}; | ||
export class QueryCache extends ReactiveObservable { | ||
export class QueryCache extends FlowSubject { | ||
get data$() { | ||
@@ -15,0 +15,0 @@ return this.pipe(map((x) => x.data)); |
@@ -25,3 +25,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
import * as uuid from 'uuid'; | ||
import { ReactiveObservable } from '@equinor/fusion-observable'; | ||
import { FlowSubject } from '@equinor/fusion-observable'; | ||
import { filterAction } from '@equinor/fusion-observable/operators'; | ||
@@ -51,3 +51,3 @@ import { handleRequests, handleFailures } from './epics'; | ||
_QueryClient_subscription.set(this, void 0); | ||
__classPrivateFieldSet(this, _QueryClient_state, new ReactiveObservable(createReducer(), {}), "f"); | ||
__classPrivateFieldSet(this, _QueryClient_state, new FlowSubject(createReducer(), {}), "f"); | ||
__classPrivateFieldSet(this, _QueryClient_subscription, new Subscription(() => __classPrivateFieldGet(this, _QueryClient_state, "f").complete()), "f"); | ||
@@ -54,0 +54,0 @@ __classPrivateFieldGet(this, _QueryClient_subscription, "f").add(__classPrivateFieldGet(this, _QueryClient_state, "f").addEpic(handleRequests(queryFn))); |
import { Observable } from 'rxjs'; | ||
import { ActionPayloadType, ReactiveObservable } from '@equinor/fusion-observable'; | ||
import { ActionPayloadType, FlowSubject } from '@equinor/fusion-observable'; | ||
import type { QueryCacheActions, QueryCacheActionTypes } from './actions'; | ||
@@ -9,3 +9,3 @@ import type { QueryCacheRecord, QueryCacheState, QueryCacheStateData } from './types'; | ||
}; | ||
export declare class QueryCache<TType, TArgs> extends ReactiveObservable<QueryCacheState<TType, TArgs>, QueryCacheActionTypes<TType, TArgs>> { | ||
export declare class QueryCache<TType, TArgs> extends FlowSubject<QueryCacheState<TType, TArgs>, QueryCacheActionTypes<TType, TArgs>> { | ||
get data$(): Observable<Record<string, QueryCacheRecord<TType, TArgs>>>; | ||
@@ -12,0 +12,0 @@ get latest(): QueryCacheRecord<TType, TArgs> | undefined; |
{ | ||
"name": "@equinor/fusion-query", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "WIP", | ||
@@ -57,3 +57,3 @@ "private": false, | ||
"dependencies": { | ||
"@equinor/fusion-observable": "^2.2.0", | ||
"@equinor/fusion-observable": "^2.3.0", | ||
"immer": "^9.0.16", | ||
@@ -81,3 +81,3 @@ "rxjs": "^7.5.7", | ||
}, | ||
"gitHead": "8bc00acbf39cd5cdfef3eae3bfc48889a8fd94fa" | ||
"gitHead": "5f2707d200fa0c0d59d5b1bd6cce45f54f5619b0" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
144903