This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sendMercure({ | |
ctx, | |
action: '/activities/{id}', | |
data, | |
}).then() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createSlice } from '@reduxjs/toolkit'; | |
import api from "../../../components/api"; | |
import {Platform} from "react-native"; | |
import {errorHandler} from "../../services/ErrorHandler"; | |
const slice = createSlice({ | |
name: 'authenticate', | |
initialState: { | |
token: null, | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createSlice } from '@reduxjs/toolkit'; | |
import api from "../../../components/api"; | |
import {Platform} from "react-native"; | |
import {errorHandler} from "../../services/ErrorHandler"; | |
export const slice = createSlice({ | |
name: 'authenticate', | |
initialState: { | |
token: null, | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createSlice } from '@reduxjs/toolkit'; | |
export const slice = createSlice({ | |
name: 'counter', | |
initialState: { | |
value: 0, | |
}, | |
reducers: { | |
increment: state => { | |
// Redux Toolkit allows us to 'mutate' the state. It doesn't actually |