Skip to content

[Q/A] How to use ant-design Menu in an extension? #187

Answered by crazyair
crazyair asked this question in Q&A
Discussion options

You must be logged in to vote

I know the cause of the problem

  1. useContext result is window

  1. After checking, it is because antd relies on rc-menu. The rc-menu exports useFullPath in this way

  1. It's OK to change it to this

Replies: 7 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@louisgv
Comment options

@crazyair
Comment options

Comment options

You must be logged in to vote
1 reply
@louisgv
Comment options

Answer selected by louisgv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested with-ant-design Questions about integrating ant-design with Plasmo
3 participants
Converted from issue

This discussion was converted from issue #180 on September 06, 2022 16:58.