Code Monkey home page Code Monkey logo

Comments (7)

louisinger avatar louisinger commented on August 20, 2024

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.

bordalix avatar bordalix commented on August 20, 2024

@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.

tiero avatar tiero commented on August 20, 2024

It should be, but can check again on vercel

from dex.nextjs.

bordalix avatar bordalix commented on August 20, 2024

@tiero not happening to me on https://trade.fuji.money/, should we close this issue?

from dex.nextjs.

bordalix avatar bordalix commented on August 20, 2024

Voodoo?

https://trade.fuji.money/

  1. Reload => disconnects Marina, but
  2. 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.

bordalix avatar bordalix commented on August 20, 2024

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.

bordalix avatar bordalix commented on August 20, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.