jspuij / Cortex.Net

State management like MobX for .NET and Blazor

Home Page:https://jspuij.github.io/Cortex.Net.Docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nested Dictionaries

schotime opened this issue · comments

Hey, firstly great library! Coming from mobx its nice to have something familiar.

I'm trying to use nested IDictionaries that are observable cause thats how my state is structured however I can't seem to get it to work unless I navigate away and come back the observed page. I suspect it has something to do with how you're doing the observing on dictionaries, cause once the key (dictionary key) is there all subsequent requests re-render correctly. In my situation the keys are added in a lazy fashion in both the parent and child dictionaries.

Do you have any thoughts on this? Is my suspicion correct?
Let me know if you need me to try and create a repro.

Thanks

@schotime A repo would be nice :-)