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.

<b-table> doesn't call items provider function

See original GitHub issue

I’v tried this feature on both versions (0.20.2 and 1.0.0-beta.3).

SomeComponent.vue

<template>
  <b-table :items="itemsProvider" ...>
    ... omitted ...
  </b-table>
</template>

<script>
 export default {
    data () {
      return {
        fields: {
          ...
        }
      }
    },
    methods: {
      itemsProvider (context) {
        console.log(context)
      }
    }
  }
</script>

When I open a page there is nothing appears in the console.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
tmorehousecommented, Aug 17, 2017

That is true. busy should only be set once your provider starts running, and cleared when your provider finishes and returns (either a promise, callback or provides the items table).

b-table looks at busy and prevents certain things from happening (like calling provider update a second time while one is currently running, preventing click events from propagating, etc.)

1reaction
tmorehousecommented, Aug 17, 2017

True, we will have the documentation updated.

The examples show it after the provider has started running.

We are working on a PR that will auto set/clear busy when a provider function is provided. (and busy will be a .syncable prop

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I update the items async in a b-table from Bootstrap ...
I am pulling my content from a backend using an item provider function. <b-table :items="myProvider" >. The initial call works just fine with ......
Read more >
Table | Components - BootstrapVue
See the "Using Items Provider functions" section below for more details. Table item notes and warnings. Avoid manipulating record data in place, as...
Read more >
Table function in Power Apps - Power Platform - Microsoft Learn
A table is a value in Power Apps, just like a string or a number. You can specify a table as an argument...
Read more >
CREATE VIEW - Amazon Redshift
A late-binding view doesn't check the underlying database objects, ... The following command creates a view called myevent from a table called EVENT....
Read more >
Data definition language (DDL) statements in ... - Google Cloud
VALUE is a constant expression containing only literals, query parameters, and scalar functions. The constant expression cannot contain: A reference to a table...
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