question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Delayed loading not work

See original GitHub issue

The component always show “No Sub-options” when using loadOptions, here is the code:

 async loadOptions({action, parentNode, callback}) {
        if (action === LOAD_CHILDREN_OPTIONS) {
          const {name} = parentNode;
          if (name) {
            const {data} = await getSubCategory({name});
            parentNode.children = data;
            callback();
          } else {
            parentNode.children = [];
          }
        }
      }

How can I solve this problem?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
scbingcommented, Mar 23, 2021

@MeFelixWang The same problem, how did you solve it

0reactions
d3249commented, Aug 12, 2022

I have the same issue, any hints on how to solve?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Native lazy-loading (loading=lazy) not working even with flags ...
I use Chrome by default and it was not working. ... It turns out Chrome is more impatient than Firefox when loading images...
Read more >
Lazy loading - Web performance | MDN
Lazy loading is a strategy to identify resources as non-blocking (non-critical) and load these only when needed. It's a way to shorten the ......
Read more >
Browser-level image lazy loading for the web - web.dev
This post covers the loading attribute and how it can be used to control the loading of images.
Read more >
5.5 lazy loading doesn't work for me - WordPress.org
I just updated to 5.5 and used a custom lazy loading script (blazy.js) before. I disabled it and want to check the new...
Read more >
Lazy loading not working · Issue #65 · hrsh7th/nvim-cmp
I am transitioning from nvim-compe to nvim-cmp but I am unable to lazy load this plugin which was not the case with nvim-compe...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found