Comments (5)
The table loads fine, but I am not sure how to get rid of the warning? Any ideas?
Hi, @Rednas83
I think this problem cause you are used nuxt.js and enabled SSR mode, so it's told you server side's html and client side's html has something different?
You can try to wrap <VueTableLite>
with <ClientOnly>
, maybe resolve the problem.
<ClientOnly>
<VueTableLite
v-if="cindex.type == 'table'"
:columns="cindex.header"
:rows="cindex.items"
:total="cindex.items?.length"
:page-size="cindex.items?.length < 10 ? cindex.items?.length : 10"
:sortable="inputs.sortable"
:is-static-mode="true"
:has-checkbox="inputs.selectable"
></VueTableLite>
</ClientOnly>
from vue3-table-lite.
Just tried it with ClientOnly
but I still have the warning unfortunately
Tried:
- Restarting the server
- Making it simpler also didn't work
<VueTableLite :columns="cindex.header" :rows="cindex.items"></VueTableLite>
- Using the website example worked without warning. Biggest different that I can see is that my data is asynchronously
https://github.com/linmasahiro/vue3-table-lite#samplecode
from vue3-table-lite.
Moving ClientOnly
to the root instead of just VueTableLite
caused an error instead of the warning
After turning off static mode it now works as expected
Any ideas why static mode is not working with nuxt?
from vue3-table-lite.
Hi, @Rednas83
It's nuxt3's project? Can you implement the problem on Codesandbox?
from vue3-table-lite.
Just tried reproducing it with Sandbox but no problems there so I guess I will have to look further in my application.
https://codesandbox.io/p/sandbox/zdhq6m
The online sandbox gives a permission error but you should be able to open the sandbox in VS Code
I used the provided example but migrated axios
to fetch
and used a different url because the url in the example was using html instead of json.
I will turn off static mode for now in my application.
from vue3-table-lite.
Related Issues (20)
- Clear checked items when changing pages.
- Is it possible to add apexchart sparkline to doSearch() function? HOT 10
- Could not find a way to change the route of the app using the buttons on table HOT 1
- click event not handled in tableLoadingFinish function HOT 2
- Static mode pagination not working as expected HOT 3
- Is it possible to add 'return clearChecked' if 'hasCheckbox'?
- Is it possible to add 'return clearChecked' if 'hasCheckbox'? HOT 6
- Bug when dynamically showing checkboxes HOT 1
- Grouping with toggle like a treeview inside table ? HOT 4
- [OTHERS] Call a Function inside of display property for a button HOT 12
- Unchecking row returns old value HOT 5
- Examples not compatible with latest version of vue3 and node18 HOT 1
- Allow HTML in header HOT 4
- Vertical highlighting on mouse hover HOT 3
- has-checkbox and is-fixed-first-column turned on, only checkbox header stays when table scrolls horizontally. HOT 3
- checked items not being cleared HOT 6
- Page selection list too long HOT 1
- Hero text is visible on the side nav HOT 4
- Page-size and page-options not working HOT 1
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 vue3-table-lite.