Hi Team,
unfortunately can’t post that as Comment under the Original Post.
But wanted to make you aware that in this post’s example code: https://community.palantir.com/t/how-to-create-a-custom-widget-for-workshop/2182/2
The User Information get’s fetched every render. I think that should be pushed into an useEffect.
Code I reference:
const [user, setUser] = React.useState<User>();
const getProfile = React.useCallback(async () => {
const result = await getCurrent(platformClient);
setUser(result);
}, []);
getProfile()