September 2018
Intermediate to advanced
328 pages
9h 10m
English
The first section contains import statements and the wasm and state properties on the exported store object, as follows:
import { apiFetchTransactions, apiAddTransaction, apiEditTransaction, apiRemoveTransaction} from './api.js';import WasmTransactions from './WasmTransactions.js';export const store = { wasm: null, state: { transactions: [], activeTransactionId: 0, balances: { initialRaw: 0, currentRaw: 0, initialCooked: 0, currentCooked: 0 } }, ...
All API interaction is limited to the store.js file. Since we need to manipulate, add, and search transactions, all of the exported functions from api.js are imported. The store object holds the WasmTransactions instance in the wasm property and initial state ...
Read now
Unlock full access