I created a new route from the action-starter-kit project, and it selects some data asynchronously and then displays them, but after a second the page reloads with the message "Page not found", sorry, but the page you are trying to view does not exist. "
In the console, I see - “Warning: text content did not match” Server: “Remains” Client: “Page not found”
async function action() {
let bittrex = new ccxt.bittrex ({
'apiKey': '',
'secret': ''
})
try {
let bittrexBalance = await bittrex.fetchBalance ()
console.log ('balance', bittrexBalance)
let balances = [];
balances.push(bittrexBalance)
return {
title: "Balances",
component: (
<Layout>
<Balances balances={balances} />
</Layout>
),
};
} catch (e) {
console.log('SOME sort of error', e);
}
Does anyone know what this could be?
Edit to add, now I understand that if I turn off Javascript everything will work just fine ...
It seems to work through the universal router twice. For the first time
, ... , , ...
: :
catch (e) ... , ccxt -, , , - ...