Is your feature request related to a problem? Please describe.
Reference #3486. I want to lazily load data when entering the page, cache them after the data is loaded, and release them when leaving the page.
Describe the solution you'd like
As shown below, support sub.read processing inside useEffect, which will currently throw an error(Bad state: called ProviderSubscription.read on a subscription that was closed).
Is your feature request related to a problem? Please describe. Reference #3486. I want to lazily load data when entering the page, cache them after the data is loaded, and release them when leaving the page.
Describe the solution you'd like As shown below, support sub.read processing inside useEffect, which will currently throw an error(Bad state: called ProviderSubscription.read on a subscription that was closed).