Comments (7)
I think this is coming from the independant Connect button component https://github.com/tiero/svelte-marina-button. Probably not up to date with latest marina-provider
from dex.nextjs.
@tiero I'm able to replicate it on https://trade.fuji.money/ but not on https://dex-nextjs-iota.vercel.app/ 🤯
Are you sure is the same commit deployed?
from dex.nextjs.
It should be, but can check again on vercel
from dex.nextjs.
@tiero not happening to me on https://trade.fuji.money/, should we close this issue?
from dex.nextjs.
Voodoo?
- Reload => disconnects Marina, but
- Shift + Reload => connects Marina
And, if you have inspector open, it never disconnects 🤯
This is why I wasn't able to replicate (had inspector open)
TL/DR a soft reload with inspector closed drops Marina connection.
Screen.Recording.2023-09-25.at.12.10.19.mov
from dex.nextjs.
It has something to do with cache:
- if inspector is open with disable cache on, it never disconnects
- shift reload doesn't use cache, so it never disconnects
- a simple reload does use cache and disconnects
Any ideas?
from dex.nextjs.
To replicate this on development environment, you must:
yarn build && yarn start
instead of
yarn dev
because in the latter the app will not show the bug.
For some reason, when soft reloading the app seems to loose reactivity (I think it uses information from cache so don't properly refresh). Adding a setTimeout(updateConnect, 1_000)
on the code brings back reactivity a second later 🤷
Fixed by 07fa67a
from dex.nextjs.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dex.nextjs.