How to use redux-object - 10 common examples

To help you get started, we’ve selected a few redux-object examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ghostery / ghostery-extension / src / classes / Account.js View on Github external
.then((res) => {
				const settings = build(normalize(res, { camelizeKeys: false }), 'settings', res.data.id);
				const { settings_json } = settings;
				// @TODO setConfUserSettings settings.settingsJson
				this._setConfUserSettings(settings_json);
				this._setAccountUserSettings(settings_json);
				return settings_json;
			})
	)
github smartcontractkit / chainlink / explorer / client / src / containers / JobRuns / Show.tsx View on Github external
const jobRunSelector = (
  { jobRuns, taskRuns, chainlinkNodes }: AppState,
  jobRunId?: string,
): JobRun | undefined => {
  if (jobRuns.items) {
    const document = {
      jobRuns: jobRuns.items,
      taskRuns: taskRuns.items,
      chainlinkNodes: chainlinkNodes.items,
    }
    return build(document, 'jobRuns', jobRunId)
  }
  return
}
github smartcontractkit / chainlink / explorer / client / src / containers / Admin / Head / Show.tsx View on Github external
const adminHeadSelector = (
  headId: number | undefined,
  state: AppState,
): Head => {
  return build(state.adminHeads, 'items', headId)
}
github smartcontractkit / chainlink / operator_ui / src / selectors / transactions.ts View on Github external
      .map((id) => build(transactions, 'items', id))
      .filter((t) => t)
github smartcontractkit / chainlink / operator_ui / src / selectors / jobRuns.ts View on Github external
      .map((id) => build(jobRuns, 'items', id))
      .filter((r) => r)
github smartcontractkit / chainlink / operator_ui / src / selectors / job.ts View on Github external
export default ({ jobs }: Pick, id: string) => {
  return build(jobs, 'items', id, { eager: true })
}
github ghostery / ghostery-extension / src / classes / Account.js View on Github external
.then((res) => {
						const { css } = build(normalize(res), 'themes', res.data.id);
						this._setThemeData({ name, css });
						return css;
					});
			})
github smartcontractkit / chainlink / explorer / client / src / containers / JobRuns / Index.tsx View on Github external
return jobRunsIndex.items?.map(id => {
    const document = {
      jobRuns: jobRuns.items,
      chainlinkNodes: chainlinkNodes.items,
    }
    return build(document, 'jobRuns', id)
  })
}
github smartcontractkit / chainlink / operator_ui / src / selectors / jobRun.js View on Github external
export default ({ jobRuns }, id) => build(jobRuns, 'items', id)
github smartcontractkit / chainlink / explorer / client / src / containers / Admin / Head / Index.tsx View on Github external
return adminHeadsIndex.items.map(id =>
      build({ adminHeads: adminHeads.items }, 'adminHeads', id),
    )

redux-object

Builds complex JS object from normalized redux store. Best works with json-api-normalizer

MIT
Latest version published 3 years ago

Package Health Score

53 / 100
Full package analysis

Popular redux-object functions