MCPcopy Create free account

hub / github.com/DanWahlin/Observable-Store / functions

Functions243 in github.com/DanWahlin/Observable-Store

↓ 51 callersMethoddeepClone
(value: T)
modules/observable-store/utilities/cloner.service.ts:7
↓ 39 callersMethodsetState
* Set store state. Pass the state to be updated as well as the action that is occurring. * The state value can be a function [(see example)](http
modules/observable-store/observable-store.ts:200
↓ 27 callersMethodgetState
* Retrieve store's state. If using TypeScript (optional) then the state type defined when the store * was created will be returned rather than `a
modules/observable-store/observable-store.ts:160
↓ 27 callersMethodsubscribe
(listener: (change: unknown) => void)
modules/observable-store-extensions/interfaces.ts:2
↓ 24 callersMethodupdateProp1
(value: string, cloneState: boolean = true)
modules/observable-store/tests/mocks.ts:27
↓ 20 callersMethodupdateUser
(user: MockUser, deepCloneState: boolean = true)
modules/observable-store/tests/mocks.ts:85
↓ 18 callersMethodformat
(fmt?: string)
modules/observable-store/utilities/cloner.service.spec.ts:20
↓ 18 callersMethodunsubscribe
()
modules/observable-store-extensions/interfaces.ts:3
↓ 17 callersMethoddestroy
* Unregister this service from the global store and complete its state dispatchers. * Call this when a service is destroyed (e.g., in Angular's n
modules/observable-store/observable-store.ts:300
↓ 16 callersMethodgetTime
()
modules/observable-store/utilities/cloner.service.spec.ts:32
↓ 13 callersMethodget
(key: string)
modules/observable-store/utilities/cloner.service.spec.ts:55
↓ 9 callersMethoderror
(anyErr: unknown)
modules/observable-store-extensions/interfaces.ts:6
↓ 8 callersMethodset
(key: string, value: any)
modules/observable-store/utilities/cloner.service.spec.ts:59
↓ 7 callersFunctiongetUser
()
modules/observable-store/tests/mocks.ts:74
↓ 6 callersMethodfilter
()
samples/angular-store/src/app/customers/customers-list/filter-textbox.component.ts:14
↓ 6 callersMethodget
(id: number)
samples/angular-store-edits/src/app/orders/orders.service.ts:46
↓ 5 callersMethodadd
(days: number)
modules/observable-store/utilities/cloner.service.spec.ts:36
↓ 5 callersMethoddispatchState
* Dispatch the store's state without modifying the store state. Service state can be dispatched as well as the global store state. * If `dispatch
modules/observable-store/observable-store.ts:280
↓ 5 callersMethodgetCurrentState
(deepCloneReturnedState: boolean = true)
modules/observable-store/tests/mocks.ts:100
↓ 5 callersMethodinitializeState
* Used to initialize the store's starting state. An error will be thrown if this is called and store state already exists. * No notifications are
modules/observable-store/observable-store.ts:111
↓ 4 callersMethodaddToUsers
(user: MockUser, deepCloneState: boolean = true)
modules/observable-store/tests/mocks.ts:93
↓ 4 callersMethodfetchCustomers
()
samples/angular-store-edits/src/app/customers/customers.service.ts:21
↓ 4 callersMethodget
(id: number)
samples/angular-store-edits/src/app/customers/customers.service.ts:47
↓ 4 callersMethodgetStoreState
(propertyName: string | null = null, deepCloneReturnedState: boolean = true)
modules/observable-store/observable-store-base.ts:34
↓ 3 callersMethod_getStateOrSlice
(deepCloneReturnedState: boolean)
modules/observable-store/observable-store.ts:268
↓ 3 callersFunctioncapitalize
samples/react-store/src/utils/index.js:1
↓ 3 callersMethodclearState
* Clear/null the store state for all services that use it.
modules/observable-store/observable-store.ts:130
↓ 3 callersFunctionformatCurrency
(amount)
samples/react-store/src/utils/index.js:3
↓ 3 callersMethodgetCustomers
()
samples/javascript-demo/src/customers-store.js:22
↓ 3 callersMethodgetProperty
(propName: string, deepClone: boolean = true)
modules/observable-store/tests/mocks.ts:104
↓ 3 callersMethodgetSliceProperty
(propName: string, deepClone: boolean = true)
modules/observable-store/tests/mocks.ts:108
↓ 3 callersMethodgetUserSettings
()
samples/angular-store-edits/src/app/core/user-settings.service.ts:22
↓ 3 callersMethodisComplexObject
* Determines if a value is a "complex object" — one that would be destroyed * by JSON.parse(JSON.stringify()). This includes: * - Objects wi
modules/observable-store/utilities/cloner.service.ts:67
↓ 3 callersMethodlogAction
(state: any, action: string)
modules/observable-store/tests/mocks.ts:52
↓ 3 callersMethodnavigate
(path: string)
modules/observable-store-extensions/interfaces.ts:32
↓ 3 callersMethodnavigateHome
()
samples/angular-store-edits/src/app/customers/customers-edit/customers-edit.component.ts:76
↓ 3 callersMethodresetState
* Used to reset the state of the store to a desired value for all services that derive * from ObservableStore<T> to a desired value. * A sta
modules/observable-store/observable-store.ts:120
↓ 3 callersMethodsetStateRaw
(state: any, action?: string)
modules/observable-store/tests/mocks.ts:47
↓ 3 callersMethodsetStoreState
(state: Record<string, unknown>, deepCloneState: boolean = true)
modules/observable-store/observable-store-base.ts:58
↓ 3 callersFunctionsort
(prop)
samples/react-store/src/customers/CustomersList.jsx:29
↓ 2 callersMethod_updateState
(state: Partial<T>, deepCloneState: boolean)
modules/observable-store/observable-store.ts:264
↓ 2 callersMethodadd
(customer: Customer)
samples/angular-store-edits/src/app/customers/customers.service.ts:60
↓ 2 callersMethodadd
(customer: Customer)
samples/angular-simple-store/src/app/core/store/customers.service.ts:53
↓ 2 callersMethodaddExtension
* Used to add an extension into ObservableStore. The extension must implement the * `ObservableStoreExtension` interface.
modules/observable-store/observable-store.ts:103
↓ 2 callersMethodcalculateOrders
()
samples/angular-store/src/app/customers/customers-list/customers-list.component.ts:36
↓ 2 callersMethodcalculateOrders
()
samples/angular-store-edits/src/app/customers/customers-list/customers-list.component.ts:34
↓ 2 callersFunctionchange
(prop, value)
samples/react-store/src/customers/CustomerEdit.jsx:39
↓ 2 callersMethodcheckIsAngular
()
modules/observable-store-extensions/redux-devtools.extension.ts:241
↓ 2 callersMethodclearHistory
()
modules/observable-store/tests/mocks.ts:57
↓ 2 callersMethodcloneRegExp
(value: RegExp)
modules/observable-store/utilities/cloner.service.ts:273
↓ 2 callersMethodconnect
(config?: ReduxDevtoolsExtensionConfig)
modules/observable-store-extensions/redux-devtools.extension.ts:43
↓ 2 callersMethoddeepClone
(obj: V)
modules/observable-store/observable-store-base.ts:72
↓ 2 callersMethoddispatchDevToolsState
(state: any, action: string)
modules/observable-store-extensions/redux-devtools.extension.ts:141
↓ 2 callersMethoddispatchToAllServices
(state: unknown)
modules/observable-store/observable-store.ts:144
↓ 2 callersMethodfetchOrders
()
samples/angular-store-edits/src/app/orders/orders.service.ts:23
↓ 2 callersMethodfilter
()
samples/angular-store-edits/src/app/customers/customers-list/filter-textbox.component.ts:13
↓ 2 callersMethodfilterOrders
(id: number, orders: Order[])
samples/angular-store/src/app/core/services/orders.service.ts:49
↓ 2 callersMethodfilterOrders
(id: number, orders : Order[])
samples/angular-store-edits/src/app/orders/orders.service.ts:63
↓ 2 callersMethodfilterOrders
(id, orders)
samples/react-store/src/stores/OrdersStore.js:33
↓ 2 callersMethodfixPropertyValue
( original: Record<string | number, unknown>, copy: Record<string | number, unknown>,
modules/observable-store/utilities/cloner.service.ts:232
↓ 2 callersMethodfixTypes
* After JSON.parse(JSON.stringify()), fix types that JSON doesn't preserve: * Date, RegExp, Map, Set, NaN, Infinity.
modules/observable-store/utilities/cloner.service.ts:214
↓ 2 callersMethodgetAll
()
samples/angular-store-edits/src/app/customers/customers.service.ts:32
↓ 2 callersMethodgetCustomer
(id)
samples/react-store/src/stores/CustomersStore.js:30
↓ 2 callersMethodgetCustomers
()
samples/angular-store/src/app/core/services/customers.service.ts:31
↓ 2 callersMethodgetCustomers
()
samples/react-store/src/stores/CustomersStore.js:18
↓ 2 callersMethodgetStateProperty
* Retrieve a specific property from the store's state which can be more efficient than getState() * since only the defined property value will be
modules/observable-store/observable-store.ts:170
↓ 2 callersMethodgetStateSliceProperty
* Retrieve a specific property from the store's state which can be more efficient than getState() * since only the defined property value will be
modules/observable-store/observable-store.ts:181
↓ 2 callersMethodinit
Function used to initialize the extension.
modules/observable-store-extensions/interfaces.ts:28
↓ 2 callersMethodisString
(val: any)
samples/angular-store/src/app/core/sorter.service.ts:45
↓ 2 callersMethodisString
(val: any)
samples/angular-store-edits/src/app/core/sorter.service.ts:40
↓ 2 callersMethodisString
(val: any)
samples/angular-simple-store/src/app/core/utilities/sorter.service.ts:52
↓ 2 callersMethodlogStateAction
* Add a custom state value and action into the state history. Assumes `trackStateHistory` setting was set * on store or using the global settings
modules/observable-store/observable-store.ts:247
↓ 2 callersMethodresetStateHistory
* Reset the store's state history to an empty array.
modules/observable-store/observable-store.ts:260
↓ 2 callersMethodresolve
(path: string, obj: any)
samples/angular-simple-store/src/app/core/utilities/property-resolver.ts:2
↓ 2 callersMethodresolveProperty
(path: string, obj: any)
samples/angular-store/src/app/core/sorter.service.ts:49
↓ 2 callersMethodresolveProperty
(path: string, obj: any)
samples/angular-store-edits/src/app/core/sorter.service.ts:44
↓ 2 callersMethodrunInZone
(action: () => void)
modules/observable-store-extensions/angular/angular-devtools-extension.ts:45
↓ 2 callersMethodsend
(action: unknown, state: unknown)
modules/observable-store-extensions/interfaces.ts:4
↓ 2 callersMethodupdateUsingAFunction
(func: stateFunc<MockState>, cloneState: boolean = true)
modules/observable-store/tests/mocks.ts:35
↓ 1 callersMethodadd
(customer: Customer)
samples/angular-store-edits/src/app/customers/customers-edit/customers-edit.component.ts:56
↓ 1 callersFunctioncalculateOrders
(custs)
samples/react-store/src/customers/CustomersList.jsx:25
↓ 1 callersMethodcheckIsReact
()
modules/observable-store-extensions/redux-devtools.extension.ts:233
↓ 1 callersMethodclearStoreState
()
modules/observable-store/observable-store-base.ts:68
↓ 1 callersMethodclone
()
modules/observable-store/utilities/cloner.service.spec.ts:28
↓ 1 callersMethodcloneComplexValue
* Clones a complex object safely. Strategy (in order): * 1. If it has a clone() method (Dayjs, Moment, Luxon all do), use it * 2. If the con
modules/observable-store/utilities/cloner.service.ts:166
↓ 1 callersMethodcloneWithComplexObjects
* Clones an object/array that contains complex (non-JSON-safe) values. * Walks the tree manually: each child is recursively deep-cloned.
modules/observable-store/utilities/cloner.service.ts:147
↓ 1 callersMethodcontainsComplexValues
* Recursively checks if an object or array contains any complex objects * that can't be JSON-cloned safely.
modules/observable-store/utilities/cloner.service.ts:115
↓ 1 callersMethodcreatePromise
(err, result)
samples/react-store/src/stores/CustomersStore.js:54
↓ 1 callersMethodcreatePromise
(err, result)
samples/react-store/src/stores/OrdersStore.js:37
↓ 1 callersMethodcreatePromise
(err, result)
samples/javascript-demo/src/customers-store.js:58
↓ 1 callersMethoddelete
(id)
samples/react-store/src/stores/CustomersStore.js:47
↓ 1 callersMethoddeleteLocalCustomer
(id: number)
samples/angular-store-edits/src/app/customers/customers.service.ts:102
↓ 1 callersMethoddisconnect
()
modules/observable-store-extensions/redux-devtools.extension.ts:56
↓ 1 callersMethoddispatch
(stateChanges: any, dispatchGlobalState: boolean = true)
modules/observable-store/tests/mocks.ts:62
↓ 1 callersMethodfetchCustomers
()
samples/angular-store/src/app/core/services/customers.service.ts:20
↓ 1 callersMethodfetchCustomers
()
samples/react-store/src/stores/CustomersStore.js:9
↓ 1 callersMethodfetchCustomers
()
samples/javascript-demo/src/customers-store.js:9
↓ 1 callersMethodfetchOrders
()
samples/angular-store/src/app/core/services/orders.service.ts:19
↓ 1 callersMethodfetchOrders
()
samples/react-store/src/stores/OrdersStore.js:9
↓ 1 callersMethodgetCustomer
(id: number)
samples/angular-store/src/app/core/services/customers.service.ts:44
next →1–100 of 243, ranked by callers