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

Refresh snippets list when new snippet is created #88

Open
shivaypiece opened this issue Feb 23, 2024 · 3 comments
Open

Refresh snippets list when new snippet is created #88

shivaypiece opened this issue Feb 23, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers in the OSP Community.

Comments

@shivaypiece
Copy link
Contributor

At the moment when a new snippet is created, the snippet list doesn't refresh automatically. It should refresh upon creation of the snippet.

@shivaypiece shivaypiece added good first issue Good for newcomers in the OSP Community. enhancement New feature or request labels Feb 23, 2024
@MdSadiqMd
Copy link

Hey, I am interested in taking up this issue. Here are my thoughts on solving it. Please correct me if I am wrong.
I think I need to add refreshSnippetList() as a dependency by wrapping the piece of code below in useEffect.
Link to the code on GitHub

@jwafu
Copy link
Contributor

jwafu commented Feb 26, 2024

hey @MdSadiqMd the only issue i see here is the linked code that you attached here, since this is around a new asset (snippet) being created, it may be better to have the list refresh when the snippet list is refreshed after a user creates a new snippet and adding it here under createAsset, and also adding a similar functionality when an asset is deleted as well. 👍

let me know if there are any other questions but feel free to get started on this 😄

@MdSadiqMd
Copy link

I really appreciate your help going to start working on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers in the OSP Community.
Projects
None yet
Development

No branches or pull requests

3 participants