pupudu / window-table

Windowing Table for React based on React Window
https://window-table.netlify.com/
170 stars 13 forks source link

react-window on a next js ssr #17

Closed techandmedia closed 5 years ago

techandmedia commented 5 years ago

Hi there, I am just trying out window-table on next js (ssr) environment.

There's an error occured during load "Unexpected token export. C:...\node_modules\lodash-es\lodash.js:10" export {default as add } from './add.js'

Here is the sandbox repo https://codesandbox.io/s/nextwindowtable-dr0vz

Thank you

pupudu commented 5 years ago

Hi @techandmedia Thank you for creating the issue. And sorry that you had to face this issue. I will look into this asap

pupudu commented 5 years ago

Hi @techandmedia You can see the sandbox here working with the new bugfix version 0.6.4 https://codesandbox.io/s/nextwindowtable-q1lu4

techandmedia commented 5 years ago

Thank you, now it works!

But the first time load is quite slow, I try to reduce to just 1000 and it's still slow the first time. Can you advise please?

techandmedia commented 5 years ago

Just want to let you know that it works super fast now! Thank you, you've done a great job!

pupudu commented 5 years ago

@techandmedia Glad to hear it's faster now. I took one more step and made it even faster for SSR. Now I am using an example nextJs app locally to make sure the library works great on SSR.

An example codesandbox can be found here: https://codesandbox.io/s/nextwindowtable-yl96z and the live preview here: https://yl96z.sse.codesandbox.io/