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

[Child Component State Issue] State not Updating #713

Open
2 tasks done
mhsiddiqui opened this issue Jul 17, 2024 · 2 comments
Open
2 tasks done

[Child Component State Issue] State not Updating #713

mhsiddiqui opened this issue Jul 17, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@mhsiddiqui
Copy link

mhsiddiqui commented Jul 17, 2024

Bug Description

My scenario is that I have filters and the table below which will be updated based on filters.

There are following filters which I have

  1. Search
  2. Category
  3. Sub Category

On the category selection, I need to update the drop-down of subcategory. Filters are working fine but the subcategory dropdown is not updating. I checked by putting the child component out of the parent component, which works fine. But when I put that inside the parent component, It is not working.

Expected behaviour

The component state should be updated on changing category.

Screenshots / Screenrecords

Screen.Recording.2024-07-17.at.7.37.17.PM.mov

Steps to reproduce

No response

What browsers are you seeing the problem on?

No response

👀 Have you checked for similar open issues?

  • I checked and didn't find similar issue

Code of Conduct

  • I agree to follow this project's Code of Conduct

Are you willing to work on this issue ?

None

@mhsiddiqui mhsiddiqui added the bug Something isn't working label Jul 17, 2024
@adamghill
Copy link
Owner

It's hard to know what to do without looking at the actual code or a failing test case. Is there a small reproducible PR I can look at? Thanks!

@fatihkurtl
Copy link

fatihkurtl commented Jul 29, 2024

I had a similar problem in a simple application I made, I solved the problem with the init() method, you can look here if you find it useful;

https://github.com/fatihkurtl/dj_unicorn/blob/main/uni_app/components/todo.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants