cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PCF_Developer
Regular Visitor

context.resource.getstring not working

Hi,

 

We are creating sample PCF control using ReactJs.In that we have 5-6 reactJS component.We pass the PCF context to that component .Using the context.resource.getstring('test') to get text for labels,but we are not getting value for key 'test' at start . it take time to get value from that context.because of that control is not working.same thing work in index.ts file.

 

how we can handle this thing.

 

Thanks

 

1 REPLY 1
a33ik
MVP

Hello,

What if you read all the strings in index.ts and pass it to your react components through properties?

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Users online (81,511)