ordinary-sapphireO
Refine8mo ago
4 replies
ordinary-sapphire

how to pass custom params to access control of ShowButton

For example if I do like this
<ShowButton
                recordItemId={id}
                hideText
                resource="job"
                meta={{
                  companyId,
                  id,
                }}
              />


Here the companyId passed in meta is not passed to the useButtonCanAccess hook, Am I doing something wrong or is this an actual bug in refinedev/antd package?

I have raised an issue as well
Was this page helpful?