Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DanWahlin/Observable-Store
/ functions
Functions
243 in github.com/DanWahlin/Observable-Store
⨍
Functions
243
◇
Types & classes
129
↓ 51 callers
Method
deepClone
(value: T)
modules/observable-store/utilities/cloner.service.ts:7
↓ 39 callers
Method
setState
* 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 callers
Method
getState
* 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 callers
Method
subscribe
(listener: (change: unknown) => void)
modules/observable-store-extensions/interfaces.ts:2
↓ 24 callers
Method
updateProp1
(value: string, cloneState: boolean = true)
modules/observable-store/tests/mocks.ts:27
↓ 20 callers
Method
updateUser
(user: MockUser, deepCloneState: boolean = true)
modules/observable-store/tests/mocks.ts:85
↓ 18 callers
Method
format
(fmt?: string)
modules/observable-store/utilities/cloner.service.spec.ts:20
↓ 18 callers
Method
unsubscribe
()
modules/observable-store-extensions/interfaces.ts:3
↓ 17 callers
Method
destroy
* 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 callers
Method
getTime
()
modules/observable-store/utilities/cloner.service.spec.ts:32
↓ 13 callers
Method
get
(key: string)
modules/observable-store/utilities/cloner.service.spec.ts:55
↓ 9 callers
Method
error
(anyErr: unknown)
modules/observable-store-extensions/interfaces.ts:6
↓ 8 callers
Method
set
(key: string, value: any)
modules/observable-store/utilities/cloner.service.spec.ts:59
↓ 7 callers
Function
getUser
()
modules/observable-store/tests/mocks.ts:74
↓ 6 callers
Method
filter
()
samples/angular-store/src/app/customers/customers-list/filter-textbox.component.ts:14
↓ 6 callers
Method
get
(id: number)
samples/angular-store-edits/src/app/orders/orders.service.ts:46
↓ 5 callers
Method
add
(days: number)
modules/observable-store/utilities/cloner.service.spec.ts:36
↓ 5 callers
Method
dispatchState
* 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 callers
Method
getCurrentState
(deepCloneReturnedState: boolean = true)
modules/observable-store/tests/mocks.ts:100
↓ 5 callers
Method
initializeState
* 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 callers
Method
addToUsers
(user: MockUser, deepCloneState: boolean = true)
modules/observable-store/tests/mocks.ts:93
↓ 4 callers
Method
fetchCustomers
()
samples/angular-store-edits/src/app/customers/customers.service.ts:21
↓ 4 callers
Method
get
(id: number)
samples/angular-store-edits/src/app/customers/customers.service.ts:47
↓ 4 callers
Method
getStoreState
(propertyName: string | null = null, deepCloneReturnedState: boolean = true)
modules/observable-store/observable-store-base.ts:34
↓ 3 callers
Method
_getStateOrSlice
(deepCloneReturnedState: boolean)
modules/observable-store/observable-store.ts:268
↓ 3 callers
Function
capitalize
samples/react-store/src/utils/index.js:1
↓ 3 callers
Method
clearState
* Clear/null the store state for all services that use it.
modules/observable-store/observable-store.ts:130
↓ 3 callers
Function
formatCurrency
(amount)
samples/react-store/src/utils/index.js:3
↓ 3 callers
Method
getCustomers
()
samples/javascript-demo/src/customers-store.js:22
↓ 3 callers
Method
getProperty
(propName: string, deepClone: boolean = true)
modules/observable-store/tests/mocks.ts:104
↓ 3 callers
Method
getSliceProperty
(propName: string, deepClone: boolean = true)
modules/observable-store/tests/mocks.ts:108
↓ 3 callers
Method
getUserSettings
()
samples/angular-store-edits/src/app/core/user-settings.service.ts:22
↓ 3 callers
Method
isComplexObject
* 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 callers
Method
logAction
(state: any, action: string)
modules/observable-store/tests/mocks.ts:52
↓ 3 callers
Method
navigate
(path: string)
modules/observable-store-extensions/interfaces.ts:32
↓ 3 callers
Method
navigateHome
()
samples/angular-store-edits/src/app/customers/customers-edit/customers-edit.component.ts:76
↓ 3 callers
Method
resetState
* 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 callers
Method
setStateRaw
(state: any, action?: string)
modules/observable-store/tests/mocks.ts:47
↓ 3 callers
Method
setStoreState
(state: Record<string, unknown>, deepCloneState: boolean = true)
modules/observable-store/observable-store-base.ts:58
↓ 3 callers
Function
sort
(prop)
samples/react-store/src/customers/CustomersList.jsx:29
↓ 2 callers
Method
_updateState
(state: Partial<T>, deepCloneState: boolean)
modules/observable-store/observable-store.ts:264
↓ 2 callers
Method
add
(customer: Customer)
samples/angular-store-edits/src/app/customers/customers.service.ts:60
↓ 2 callers
Method
add
(customer: Customer)
samples/angular-simple-store/src/app/core/store/customers.service.ts:53
↓ 2 callers
Method
addExtension
* Used to add an extension into ObservableStore. The extension must implement the * `ObservableStoreExtension` interface.
modules/observable-store/observable-store.ts:103
↓ 2 callers
Method
calculateOrders
()
samples/angular-store/src/app/customers/customers-list/customers-list.component.ts:36
↓ 2 callers
Method
calculateOrders
()
samples/angular-store-edits/src/app/customers/customers-list/customers-list.component.ts:34
↓ 2 callers
Function
change
(prop, value)
samples/react-store/src/customers/CustomerEdit.jsx:39
↓ 2 callers
Method
checkIsAngular
()
modules/observable-store-extensions/redux-devtools.extension.ts:241
↓ 2 callers
Method
clearHistory
()
modules/observable-store/tests/mocks.ts:57
↓ 2 callers
Method
cloneRegExp
(value: RegExp)
modules/observable-store/utilities/cloner.service.ts:273
↓ 2 callers
Method
connect
(config?: ReduxDevtoolsExtensionConfig)
modules/observable-store-extensions/redux-devtools.extension.ts:43
↓ 2 callers
Method
deepClone
(obj: V)
modules/observable-store/observable-store-base.ts:72
↓ 2 callers
Method
dispatchDevToolsState
(state: any, action: string)
modules/observable-store-extensions/redux-devtools.extension.ts:141
↓ 2 callers
Method
dispatchToAllServices
(state: unknown)
modules/observable-store/observable-store.ts:144
↓ 2 callers
Method
fetchOrders
()
samples/angular-store-edits/src/app/orders/orders.service.ts:23
↓ 2 callers
Method
filter
()
samples/angular-store-edits/src/app/customers/customers-list/filter-textbox.component.ts:13
↓ 2 callers
Method
filterOrders
(id: number, orders: Order[])
samples/angular-store/src/app/core/services/orders.service.ts:49
↓ 2 callers
Method
filterOrders
(id: number, orders : Order[])
samples/angular-store-edits/src/app/orders/orders.service.ts:63
↓ 2 callers
Method
filterOrders
(id, orders)
samples/react-store/src/stores/OrdersStore.js:33
↓ 2 callers
Method
fixPropertyValue
( original: Record<string | number, unknown>, copy: Record<string | number, unknown>,
modules/observable-store/utilities/cloner.service.ts:232
↓ 2 callers
Method
fixTypes
* 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 callers
Method
getAll
()
samples/angular-store-edits/src/app/customers/customers.service.ts:32
↓ 2 callers
Method
getCustomer
(id)
samples/react-store/src/stores/CustomersStore.js:30
↓ 2 callers
Method
getCustomers
()
samples/angular-store/src/app/core/services/customers.service.ts:31
↓ 2 callers
Method
getCustomers
()
samples/react-store/src/stores/CustomersStore.js:18
↓ 2 callers
Method
getStateProperty
* 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 callers
Method
getStateSliceProperty
* 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 callers
Method
init
Function used to initialize the extension.
modules/observable-store-extensions/interfaces.ts:28
↓ 2 callers
Method
isString
(val: any)
samples/angular-store/src/app/core/sorter.service.ts:45
↓ 2 callers
Method
isString
(val: any)
samples/angular-store-edits/src/app/core/sorter.service.ts:40
↓ 2 callers
Method
isString
(val: any)
samples/angular-simple-store/src/app/core/utilities/sorter.service.ts:52
↓ 2 callers
Method
logStateAction
* 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 callers
Method
resetStateHistory
* Reset the store's state history to an empty array.
modules/observable-store/observable-store.ts:260
↓ 2 callers
Method
resolve
(path: string, obj: any)
samples/angular-simple-store/src/app/core/utilities/property-resolver.ts:2
↓ 2 callers
Method
resolveProperty
(path: string, obj: any)
samples/angular-store/src/app/core/sorter.service.ts:49
↓ 2 callers
Method
resolveProperty
(path: string, obj: any)
samples/angular-store-edits/src/app/core/sorter.service.ts:44
↓ 2 callers
Method
runInZone
(action: () => void)
modules/observable-store-extensions/angular/angular-devtools-extension.ts:45
↓ 2 callers
Method
send
(action: unknown, state: unknown)
modules/observable-store-extensions/interfaces.ts:4
↓ 2 callers
Method
updateUsingAFunction
(func: stateFunc<MockState>, cloneState: boolean = true)
modules/observable-store/tests/mocks.ts:35
↓ 1 callers
Method
add
(customer: Customer)
samples/angular-store-edits/src/app/customers/customers-edit/customers-edit.component.ts:56
↓ 1 callers
Function
calculateOrders
(custs)
samples/react-store/src/customers/CustomersList.jsx:25
↓ 1 callers
Method
checkIsReact
()
modules/observable-store-extensions/redux-devtools.extension.ts:233
↓ 1 callers
Method
clearStoreState
()
modules/observable-store/observable-store-base.ts:68
↓ 1 callers
Method
clone
()
modules/observable-store/utilities/cloner.service.spec.ts:28
↓ 1 callers
Method
cloneComplexValue
* 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 callers
Method
cloneWithComplexObjects
* 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 callers
Method
containsComplexValues
* 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 callers
Method
createPromise
(err, result)
samples/react-store/src/stores/CustomersStore.js:54
↓ 1 callers
Method
createPromise
(err, result)
samples/react-store/src/stores/OrdersStore.js:37
↓ 1 callers
Method
createPromise
(err, result)
samples/javascript-demo/src/customers-store.js:58
↓ 1 callers
Method
delete
(id)
samples/react-store/src/stores/CustomersStore.js:47
↓ 1 callers
Method
deleteLocalCustomer
(id: number)
samples/angular-store-edits/src/app/customers/customers.service.ts:102
↓ 1 callers
Method
disconnect
()
modules/observable-store-extensions/redux-devtools.extension.ts:56
↓ 1 callers
Method
dispatch
(stateChanges: any, dispatchGlobalState: boolean = true)
modules/observable-store/tests/mocks.ts:62
↓ 1 callers
Method
fetchCustomers
()
samples/angular-store/src/app/core/services/customers.service.ts:20
↓ 1 callers
Method
fetchCustomers
()
samples/react-store/src/stores/CustomersStore.js:9
↓ 1 callers
Method
fetchCustomers
()
samples/javascript-demo/src/customers-store.js:9
↓ 1 callers
Method
fetchOrders
()
samples/angular-store/src/app/core/services/orders.service.ts:19
↓ 1 callers
Method
fetchOrders
()
samples/react-store/src/stores/OrdersStore.js:9
↓ 1 callers
Method
getCustomer
(id: number)
samples/angular-store/src/app/core/services/customers.service.ts:44
next →
1–100 of 243, ranked by callers