useSource is marked as depreciated #3335
Answered
by
p10e
joshuaellis
asked this question in
Sanity Studio Support
-
I’m trying to use useSource in my V3 plugin as described here – https://beta.sanity.io/docs/platform/studio/v2-to-v3/plugins#migrating-part-imports but TS says this method is depreciated, is this a mistake? See image: I would have given you a permalink, but no idea where it is in your codebase (sorry) |
Beta Was this translation helpful? Give feedback.
Answered by
p10e
Jun 14, 2022
Replies: 1 comment 1 reply
-
Thanks for reporting, @joshuaellis! Looks like we'll have to update our documentation. Could you try using these hooks instead of
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
joshuaellis
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for reporting, @joshuaellis! Looks like we'll have to update our documentation. Could you try using these hooks instead of
useSource()
?