0xFable
0xFable copied to clipboard
Detect offline client
Display some info if we detect we can't get online.
The simplest thing is to use navigator.online however this is only false if the LAN is unreachable. Meaning the internet might be down but local networking up and this would still be true.
Another option to improve on this is to detect a RPC query that fails all its allotted retries.
This should be implemented as a modal on the home page and play page.
I want to take this issue, but running this project is a hassle. i have followed the read me strictly but the make anvil command not running getting an error. is there any other guide to running this project.
There isn't, but instead of complaining, a more productive approach would be to report to error so we can try to diagnose it.
Since all make anvil does is run anvil it probably means either make or anvil are not installed correctly. You can try running make --version or anvil --version to confirm.
I don't mean to be rude, but I think getting stuck at this stage maybe indicates you might not be a good fit for this project!
Thank you, i do not take offense either, i am just genuinely trying to contribute to this project as part of the ODHack and probably get experience with web3 projects.
I finally got make anvil running but when i run make webapp i have and error that says Module not found: Can't resolve 'src/generated'. I check the src folder and saw that there's no src/generated file. so i am confused what command during the setup creates this file.
EDIT: So i finally figured this out, i just missed some details hidden in the steps/docs. i take more time to understand the project architecture (frontend in particular) Cc: @norswap
All good! Feel free to work on this issue!
I’d like to work on this.
Can I take care of this issue?
Can I be assigned to this?
I'd like to take this issue.
Would love to contribute here , given my experience as a JavaScript and Typescript developer working in the Web3 space for over a year.
I’d like to help with this.
I’d like to help with this.
Hi,
I’ll use navigator.onLine to check basic connectivity and implement a retry mechanism with Axios or Fetch API for failed RPC queries. A modal will be displayed on the home and play pages when connectivity is lost. The modal will clearly inform users of any internet issues.
Could I try solving this?
Mind if I try this one?