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

localGetterContext doesn't solve recursive typing #67

Open
lyle45 opened this issue Feb 7, 2021 · 0 comments
Open

localGetterContext doesn't solve recursive typing #67

lyle45 opened this issue Feb 7, 2021 · 0 comments

Comments

@lyle45
Copy link

lyle45 commented Feb 7, 2021

If I understood the docs, using localGetterContext should resolve the issue with the return types being included in rootGetterContext recursively, by not typing root contexts. Many modules never access anything outside their slice so root context is rarely used

however, localGetterContext would still type local state and getters (makes sense right?), so returning any part of the module state without specifying return type would still cause recursive typings. Same for localActionContext

So, either I misunderstood and misused local contexts, or they don't solve the recursive issue from moduleGetterContext

In any case I'd love an explanation about what they're for or how to use them correctly?

code e.g.

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant