How the donated funds are distributed
Kivach works on the Obyte network, and therefore you can track all donations.
= (state, action) => { switch (action.type) { case HYDRATE: // Attention! This will overwrite client state! Real apps should use proper reconciliation. return {...state, ...action.payload}; case 'TICK': return {...state, tick: action.payload}; default: return state; } }; ``` As you can see the example above just overwrites the state. This is not a good idea, but it is OK for the purpose of the example. In real apps you should use more sophisticated logic. ## Configuration `createWrapper` function accepts a second argument, which is an object with configuration options: ```ts interface Config { // if true, then all error will be caught and logged, but never rethrown debug?: boolean; // if true, then `store` will be available in `ctx` in `makeStore` function store?: boolean; } ``` ## `getStaticProps` ```tsx import {wrapper} from '../components/store'; import {GetStaticProps, NextPage} from 'next'; const Page: NextPage<ReduxStore> = () => <div />; export const getStaticProps = wrapper.getStaticProps((store) =>