-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
playground issues #597
Comments
Hi @davekaro, Grid is definitely not ready yet. DFlex Grid implementation depends on each element's position and is unrelated to the CSS grid. Implementing the grid this way allows DFlex to form the entire layout from scratch away from Horizontal/Vertical strict lists. And because of this, there are many things to do to ship this feature. While it works in some cases, It is still a very early stage and takes a lot to be done. You can definitely use DFlex without React, but the project itself is still in the making. Thanks for opening this issue and for the feedback. |
Thanks for the perspective. Maybe a simpler start is asking if there is something broken with the build step, or if I'm misunderstanding something. Right now in my project, I've added dflex to package.json (
Looking at the source for |
It's being stripped when building the minified version. It's passed as a string and Terser can't recognize it when minifying. |
@davekaro I couldn't produce the same error you've got. I made a quick demo https://codesandbox.io/s/staging-shadow-9mytwo and it's working as expected. Still going to fix passing method reference instead of passing the named string anyway. |
I believe this is because looking at the source, it's using a non-minified version Your fix should work, I tried to test by referencing that commit in my package.json |
I published a patched version I hope it solves the issue. But if there's another bug let me know. |
Hello,
I tried running the playground locally and noticed all sorts of weird issues. Are some of these not expected to work? The
/grid
example was worse, I couldn't get it to sort at all, and often ended up in states like this:The root example
only works if the vertical space is enough to fit the whole list. Otherwise it throws
Uncaught TypeError: this._innerThresholdInViewport is null
. I saw similar error in my own application, where if I didn't have more than 10 items in the list, I'd get an error thatthis._outerThresholdInViewport
was null (but it was calledthis.V
but tracing the code looked like this method. Then I noticed a variableprivate static _MAX_NUM_OF_SIBLINGS_BEFORE_DYNAMIC_VISIBILITY = 10;
so if you have fewer elements than that, then_outerThresholdInViewport
will always staynull
.For more context, I'm attempting to implement sorting without React. My project is a Rails app using Stimulus JS. I've probably wired up some things wrong, but since many of the demos in the playground seemed off too, I wondered if maybe some things are still in flight. Is this project in a production ready state? Thanks!
The text was updated successfully, but these errors were encountered: