Coder Social home page Coder Social logo

Comments (13)

Aidurber avatar Aidurber commented on August 12, 2024

Hi @karankumar89
Interesting bug, I'll take a look.
It might be worth exposing the filter as an onFilterChange prop. Ideally as an uncontrolled component it should keep the state on close. There is no way currently to access the filter state.

  1. I'll fix the issue with the filter losing state
  2. I'll think about the benefit of the additonal prop.

Thanks for raising it!

from react-picky.

Aidurber avatar Aidurber commented on August 12, 2024

🎉 This issue has been resolved in version 3.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

from react-picky.

Aidurber avatar Aidurber commented on August 12, 2024

@karankumar89 A new release is building now.
You should be safe to upgrade to v3.0.1, it shouldn't have been a major bump.

from react-picky.

karankumar89 avatar karankumar89 commented on August 12, 2024

@Aidurber Thats a quick response. Thanks for fixing it. I'll take the new version. Yea it would be nice to get the additional prop.

from react-picky.

karankumar89 avatar karankumar89 commented on August 12, 2024

@Aidurber Hey i updated to the v3.0.1 but looks like the issue is still there, is it supposed to fixed from the library or should i do something from my end by using the onFilterChange prop?

from react-picky.

karankumar89 avatar karankumar89 commented on August 12, 2024

image

image

from react-picky.

Aidurber avatar Aidurber commented on August 12, 2024

Hmm I wonder if I messed up the build. I'll investigate later.

from react-picky.

karankumar89 avatar karankumar89 commented on August 12, 2024

Sounds Good! I'll wait for the new build 😎 BTW I'm really liking the picky, its super smooth and can sustain large data.

from react-picky.

Aidurber avatar Aidurber commented on August 12, 2024

🎉 This issue has been resolved in version 3.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

from react-picky.

Aidurber avatar Aidurber commented on August 12, 2024

Thanks @karankumar89
There's plenty to be improved, for large lists I'd recommend using:
https://github.com/clauderic/react-tiny-virtual-list
or the larger but with more flexibility:
https://github.com/bvaughn/react-virtualized

With > 500 items you will notice a lag, less so in a production build of React.

Regardless, I appreciate your kind words! :)

You were right, by the way, the issue wasn't resolved (this is why I should have written a test initially 😄). I had to do some moving around of the Filter. It was getting unmounted when the dropdown closed so my fix to make the Filter a controlled component internally was fruitless.

I tried to move the filterChange to the Picky component but the performance hit was huge on fairly large lists since the whole tree got re-rendered.

What I've done is a hack but it works.

from react-picky.

karankumar89 avatar karankumar89 commented on August 12, 2024

@Aidurber Thanks for the release. I implemented it and it works fine. Also thanks for the suggestions I wil look into them for larger item scenarios

from react-picky.

Riteshgiri avatar Riteshgiri commented on August 12, 2024

This does not work for me.
Is there something I need to change to clear filter field when re-opened?

from react-picky.

Riteshgiri avatar Riteshgiri commented on August 12, 2024

The content in filter is retained when I click outside and then return back to the filter

Screen Shot 2019-09-23 at 5 53 32 PM

from react-picky.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.