UNPKG

@ozanmanav/react-native-boilerplate-ts

Version:

TheCodingMachine React Native Boilerplate With Typescript

16 lines (14 loc) 494 B
import { buildAsyncState, buildAsyncReducers, buildAsyncActions, } from '@thecodingmachine/redux-toolkit-wrapper' import fetchOneUserService from '@/Services/User/FetchOne' export default { initialState: buildAsyncState('fetchOne'), action: buildAsyncActions('user/fetchOne', fetchOneUserService), reducers: buildAsyncReducers({ errorKey: 'fetchOne.error', // Optionally, if you scoped variables, you can use a key with dot notation loadingKey: 'fetchOne.loading', }), }