Skip to content
Snippets Groups Projects
Commit 2d80e9fe authored by Tadeusz Miesiąc's avatar Tadeusz Miesiąc
Browse files

refactor(common.ts): moved size of empty array to constant file

parent cd14e79a
No related branches found
No related tags found
2 merge requests!223reset the pin numbers before search results are fetch (so the results will be...,!34Feature/chemical mirna accordion
Pipeline #79799 passed
export const SIZE_OF_EMPTY_ARRAY = 0;
import { SIZE_OF_EMPTY_ARRAY } from '@/constants/common';
import { rootSelector } from '@/redux/root/root.selectors'; import { rootSelector } from '@/redux/root/root.selectors';
import { createSelector } from '@reduxjs/toolkit'; import { createSelector } from '@reduxjs/toolkit';
const SIZE_OF_EMPTY_ARRAY = 0;
export const chemicalsSelector = createSelector(rootSelector, state => state.chemicals); export const chemicalsSelector = createSelector(rootSelector, state => state.chemicals);
export const loadingChemicalsStatusSelector = createSelector( export const loadingChemicalsStatusSelector = createSelector(
......
import { SIZE_OF_EMPTY_ARRAY } from '@/constants/common';
import { rootSelector } from '@/redux/root/root.selectors'; import { rootSelector } from '@/redux/root/root.selectors';
import { createSelector } from '@reduxjs/toolkit'; import { createSelector } from '@reduxjs/toolkit';
const SIZE_OF_EMPTY_ARRAY = 0;
export const drugsSelector = createSelector(rootSelector, state => state.drugs); export const drugsSelector = createSelector(rootSelector, state => state.drugs);
export const loadingDrugsStatusSelector = createSelector(drugsSelector, state => state.loading); export const loadingDrugsStatusSelector = createSelector(drugsSelector, state => state.loading);
......
import { SIZE_OF_EMPTY_ARRAY } from '@/constants/common';
import { rootSelector } from '@/redux/root/root.selectors'; import { rootSelector } from '@/redux/root/root.selectors';
import { createSelector } from '@reduxjs/toolkit'; import { createSelector } from '@reduxjs/toolkit';
const SIZE_OF_EMPTY_ARRAY = 0;
export const mirnasSelector = createSelector(rootSelector, state => state.mirnas); export const mirnasSelector = createSelector(rootSelector, state => state.mirnas);
export const loadingMirnasStatusSelector = createSelector(mirnasSelector, state => state.loading); export const loadingMirnasStatusSelector = createSelector(mirnasSelector, state => state.loading);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment