Duplicate Properties in my freezed class while in a riverpod provider. #1096
Unanswered
PhilipHuang2
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So I am creating a AsyncNotifierProvider in Riverpod that holds a list of reviews alongside a bunch of memory variables for a complicated way of processing them. I decided to wrap the entire thing in a freezed class, and am encountering a wierd bug.
When I try to debug my code, all my variables are doubled in my class. I would have two list of reviews, and two length variables and so on and so forth, and even two value properties in my state.
See Image below.

I am a bit confused by all this since this is my first time using both freezed and riverpod.
I actually have both my freezed code, and my Riverpod code code in the same file and maybe thats what causing the issue,
This is only a portion of my code, and I am not really sure what is going on.
Any advice?
Beta Was this translation helpful? Give feedback.
All reactions