[reactive-feathers-state](../README.md) / [rootStore](../modules/rootstore.md) / RootStore

# Class: RootStore

[rootStore](../modules/rootstore.md).RootStore

## Hierarchy

* **RootStore**

## Table of contents

### Constructors

- [constructor](rootstore.rootstore-1.md#constructor)

### Properties

- [authToken](rootstore.rootstore-1.md#authtoken)
- [client](rootstore.rootstore-1.md#client)
- [console](rootstore.rootstore-1.md#console)
- [debug](rootstore.rootstore-1.md#debug)
- [emitter](rootstore.rootstore-1.md#emitter)
- [isAuthenticated](rootstore.rootstore-1.md#isauthenticated)
- [isOnline](rootstore.rootstore-1.md#isonline)
- [isReady](rootstore.rootstore-1.md#isready)
- [registeredServices](rootstore.rootstore-1.md#registeredservices)
- [state](rootstore.rootstore-1.md#state)

### Methods

- [onAuthentication](rootstore.rootstore-1.md#onauthentication)
- [registerService](rootstore.rootstore-1.md#registerservice)

## Constructors

### constructor

\+ **new RootStore**(`__namedParameters`: [*IRootStoreParams*](../interfaces/rootstore.irootstoreparams.md)): [*RootStore*](rootstore.rootstore-1.md)

#### Parameters:

Name | Type |
------ | ------ |
`__namedParameters` | [*IRootStoreParams*](../interfaces/rootstore.irootstoreparams.md) |

**Returns:** [*RootStore*](rootstore.rootstore-1.md)

Defined in: [src/rootStore.ts:35](https://github.com/ps73/reactive-feathers-state/blob/aac03ee/src/rootStore.ts#L35)

## Properties

### authToken

• **authToken**: *ComputedRef*<*null* \| *string*\>

Defined in: [src/rootStore.ts:31](https://github.com/ps73/reactive-feathers-state/blob/aac03ee/src/rootStore.ts#L31)

___

### client

• **client**: *any*

Defined in: [src/rootStore.ts:21](https://github.com/ps73/reactive-feathers-state/blob/aac03ee/src/rootStore.ts#L21)

___

### console

• **console**: { `error`: (...`args`: *any*[]) => *false* \| *void* ; `groupCollapsed`: (`label`: *string*) => *false* \| *void* ; `groupEnd`: () => *false* \| *void* ; `log`: (...`args`: *any*[]) => *false* \| *void* ; `time`: (`name`: *string*) => *false* \| *void* ; `timeEnd`: (`name`: *string*) => *false* \| *void*  }

#### Type declaration:

Name | Type |
------ | ------ |
`error` | (...`args`: *any*[]) => *false* \| *void* |
`groupCollapsed` | (`label`: *string*) => *false* \| *void* |
`groupEnd` | () => *false* \| *void* |
`log` | (...`args`: *any*[]) => *false* \| *void* |
`time` | (`name`: *string*) => *false* \| *void* |
`timeEnd` | (`name`: *string*) => *false* \| *void* |

Defined in: [src/rootStore.ts:35](https://github.com/ps73/reactive-feathers-state/blob/aac03ee/src/rootStore.ts#L35)

___

### debug

• **debug**: *boolean*

Defined in: [src/rootStore.ts:34](https://github.com/ps73/reactive-feathers-state/blob/aac03ee/src/rootStore.ts#L34)

___

### emitter

• **emitter**: Emitter

Defined in: [src/rootStore.ts:33](https://github.com/ps73/reactive-feathers-state/blob/aac03ee/src/rootStore.ts#L33)

___

### isAuthenticated

• **isAuthenticated**: *ComputedRef*<*boolean*\>

Defined in: [src/rootStore.ts:30](https://github.com/ps73/reactive-feathers-state/blob/aac03ee/src/rootStore.ts#L30)

___

### isOnline

• **isOnline**: *ComputedRef*<*boolean*\>

Defined in: [src/rootStore.ts:28](https://github.com/ps73/reactive-feathers-state/blob/aac03ee/src/rootStore.ts#L28)

___

### isReady

• **isReady**: *ComputedRef*<*boolean*\>

Defined in: [src/rootStore.ts:29](https://github.com/ps73/reactive-feathers-state/blob/aac03ee/src/rootStore.ts#L29)

___

### registeredServices

• **registeredServices**: *string*[]

Defined in: [src/rootStore.ts:32](https://github.com/ps73/reactive-feathers-state/blob/aac03ee/src/rootStore.ts#L32)

___

### state

• **state**: IRootStoreState

Defined in: [src/rootStore.ts:22](https://github.com/ps73/reactive-feathers-state/blob/aac03ee/src/rootStore.ts#L22)

## Methods

### onAuthentication

▸ **onAuthentication**(`token`: *null* \| *string*): *void*

#### Parameters:

Name | Type |
------ | ------ |
`token` | *null* \| *string* |

**Returns:** *void*

Defined in: [src/rootStore.ts:57](https://github.com/ps73/reactive-feathers-state/blob/aac03ee/src/rootStore.ts#L57)

___

### registerService

▸ **registerService**(`name`: *string*): *void*

#### Parameters:

Name | Type |
------ | ------ |
`name` | *string* |

**Returns:** *void*

Defined in: [src/rootStore.ts:63](https://github.com/ps73/reactive-feathers-state/blob/aac03ee/src/rootStore.ts#L63)
