Skip to content

Commit

Permalink
enhance: Add buildInferredResults and isEntity to __INTERNAL__
Browse files Browse the repository at this point in the history
  • Loading branch information
ntucker committed Jan 17, 2020
1 parent 1698646 commit f88717b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/rest-hooks/src/index.ts
@@ -1,10 +1,17 @@
import { Resource, SimpleResource, SimpleRecord, Entity } from './resource';
import {
Resource,
SimpleResource,
SimpleRecord,
Entity,
isEntity,
} from './resource';
import NetworkManager from './state/NetworkManager';
import RIC from './state/RIC';
import PollingSubscription from './state/PollingSubscription';
import SubscriptionManager from './state/SubscriptionManager';
import reducer, { initialState } from './state/reducer';
import { useDenormalized } from './state/selectors';
import buildInferredResults from './state/selectors/buildInferredResults';
import {
useCache,
useFetcher,
Expand All @@ -31,6 +38,8 @@ const __INTERNAL__ = {
DispatchContext,
RIC,
hasUsableData,
buildInferredResults,
isEntity,
};

export type NetworkError = OGNetworkError;
Expand Down
3 changes: 3 additions & 0 deletions website/i18n/en.json
Expand Up @@ -721,6 +721,9 @@
},
"version-4.1/guides/version-4.1-url": {
"title": "URL Patterns"
},
"version-4.2/api/version-4.2-Entity": {
"title": "Entity"
}
},
"links": {
Expand Down

0 comments on commit f88717b

Please sign in to comment.