CodeQL library for JavaScript
Search

Module Redux

Provides classes and predicates for reasoning about data flow through the redux package.

Import path

import javascript

Predicates

actionToReducerPromiseStep

Holds if pred -> succ is a step from the promise of an action payload to its use in a reducer function.

actionToReducerStep

Holds if pred -> succ is step from an action creation to its use in a reducer function.

getADispatchFunctionNode

Gets an API node referring to the Redux dispatch function.

getADispatchedValueNode

Gets an API node corresponding to a value being passed to the dispatch function.

getAffectedStateAccessPath

Gets the access path which reducer operates on.

getAnUntypedActionInReducer

Gets the action parameter of a reducer that isn’t behind an implied type guard.

reducerToStateStep

Holds if pred -> succ should be a step from a reducer to a state access affected by the reducer.

Classes

ActionCreator

A function for creating and dispatching action objects of shape {type, payload}.

DelegatingReducer

The creation of a reducer function that delegates to one or more other reducer functions.

ReducerArg

A data flow node that is used as a reducer.

StoreCreation

A creation of a redux store, usually via a call to createStore.

Modules

ActionCreator

Companion module to the ActionCreator class.

StoreCreation

Companion module to the StoreCreation class.