Skip to content
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

Can't use different data sets (React) #828

Open
svadhis opened this issue May 9, 2023 · 3 comments
Open

Can't use different data sets (React) #828

svadhis opened this issue May 9, 2023 · 3 comments

Comments

@svadhis
Copy link

svadhis commented May 9, 2023

Hi there,

We are using emoji-mart on React, and can't find a way to use different data sets. We have different uses for the picker in the same app, therefore we want to use the Picker component with different data and options. We have no problem for the theme or the onEmojiSelect callback, but the data the Picker will use is always the first data it loaded in the app, even if we rerender with a different data set.

I assume it is about caching the data for performance reasons, but can't find any way to not use it.

Is there any solution for that ?

Thank you !

@makotech222
Copy link

Dupe of #756

@misha-erm
Copy link

+1 to this issue, it is the reason why we can't upgrade from 3.0.1 to 5.x

We have several places where we use emoji-mart with different data sets, e.g. NimblePicker with custom icons and Picker with native emojis

You can think of UX like this
image

@mahadazad
Copy link

I am also facing the same issue. I need to show different data set on the same page with multiple editors. Can this be solved, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants