GithubHelp home page GithubHelp logo

Comments (6)

ingria avatar ingria commented on August 17, 2024

I can't see how application lifecycle has something to do with this error.

Dupe #41

from tonscan.

isopen avatar isopen commented on August 17, 2024

I can't see how application lifecycle has something to do with this error.

Dupe #41

@ingria This is not a duplicate of #41.

Extra table renders when there is nothing!
Please watch the video. This is due to the content rendering queue in the application.
It's not about the division of contracts. Which still doesn't work!

  1. Why are you correcting the title of the ticket? I liked the past better.
  2. Why are you in a hurry to close the ticket without understanding it?

from tonscan.

ingria avatar ingria commented on August 17, 2024

This is called “preloader” or “skeleton” and it indicates that the app is loading data. Skeleton is always shown until the ajax request resolves (either with error or with data).

The only problem that I see here is that skeleton doesn’t disappear on inactive address “contract” tab because of api error.

I’ve changed the title because this problem has nothing to do with application lifecycle. If you think I’m wrong, please explain where exactly in the lifecycle there’s an error.

from tonscan.

isopen avatar isopen commented on August 17, 2024

@ingria Thanks. Your comment is great.

  1. In the case of an ajax request, you can first get the data.
  2. In the process of receiving data, show the loader.
  3. Draw the table itself along with the data.

This strategy should ensure that the view is visually static.
An example can be viewed in TON DNS when searching domain (https://dns.ton.org/#test123).

Sorry, I wrote badly about the life cycle. You can formulate this as the life cycle of the query and display of data.

from tonscan.

ingria avatar ingria commented on August 17, 2024

"Skeleton" is just another type of loader. It is not rotating and round, yet it is still some entity indicating that the data is loading.

Unfortunately, displaying round spinning loader is not an option, because every page loads data from several different places (APIs). Some data is fast to fetch (like balance), some is slow (like contract type). Notice, how different "skeletons" take different amount of time to load:

example1.mp4

Displaying many spinning loaders would not look nice. Also, for the same reason we cannot display one big loader and wait until all data on the page is loaded - it would take too much time. Better display piece of info when it's ready, right away.

from tonscan.

isopen avatar isopen commented on August 17, 2024

You can try to make a loader for the first start of the table. I considered the case of the first entry to the page (the case of reloading the page on the browser button).
This can reduce flickering when the table is first started?

from tonscan.

Related Issues (20)

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.