accessorKey v8 vs accessor v7 #4161
Answered
by
tannerlinsley
simplecommerce
asked this question in
Q&A
Replies: 1 comment
-
Yes until we can provide type safety for deep keys, only one level is supported. You can still use the accessorFn to return deep keys
Tanner Linsley
…On Jul 17, 2022, 7:15 AM -0600, Kheang Hok Chin ***@***.***>, wrote:
Hi,
I noticed a behavior difference in v8 vs v7 for the accessorKey vs accessor.
In v7 I was able to specify a nested field in my data as such: description.title but in v8 this doesn't do anything.
I assume I have to use accessorFn to map the sub field in my object.
But is this the intended behavior?
Thanks!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
simplecommerce
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.
-
Hi,
I noticed a behavior difference in v8 vs v7 for the accessorKey vs accessor.
In v7 I was able to specify a nested field in my data as such:
description.title
but in v8 this doesn't do anything.I assume I have to use
accessorFn
to map the sub field in my object.But is this the intended behavior?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions