function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ron Mccrerey 20Ron Mccrerey 20 

LWC Wire Service:

Is the wire service in LWC Synchronous or Asynchronous?  Is there a way to capture data from a wire inquiry and use it in a second wire service. Can you call a wire service or is it only  called when the component is loaded? Can LWC be used in a 3rd party App with Angular or React?
Best Answer chosen by Ron Mccrerey 20
MagulanDuraipandianMagulanDuraipandian
To read Salesforce data, Lightning web components use a reactive wire service. When the wire service provisions data, the component rerenders. Components use @wire in their JavaScript class to specify a wire adaptor or an Apex method.

Wire Service is reactive. So, it works asynchronously. But the page renders based on the values retrieved.

You cannot chain Wire Service methods. Use dynamic binding instead.

LWC is only for Salesforce applications.

Example - http://www.infallibletechie.com/2019/03/related-list-card-with-filter-and.html

All Answers

MagulanDuraipandianMagulanDuraipandian
To read Salesforce data, Lightning web components use a reactive wire service. When the wire service provisions data, the component rerenders. Components use @wire in their JavaScript class to specify a wire adaptor or an Apex method.

Wire Service is reactive. So, it works asynchronously. But the page renders based on the values retrieved.

You cannot chain Wire Service methods. Use dynamic binding instead.

LWC is only for Salesforce applications.

Example - http://www.infallibletechie.com/2019/03/related-list-card-with-filter-and.html
This was selected as the best answer
Ron Mccrerey 20Ron Mccrerey 20
Thank you Magulan  You led me to the answer.  I will give this link also https://developer.salesforce.com/docs/component-library/documentation/lwc/lwc.data_wire_service_about
Here is how I applied it to getting RecordIds for Product2:
import PRODUCT_OBJECT from '@salesforce/schema/Product2';
import { getObjectInfo } from 'lightning/uiObjectInfoApi';
@track objectInfo;
@wire(getObjectInfo, { objectApiName: PRODUCT_OBJECT })
$objectInfo;

Then to refer to it later:
createProduct () {
console.log( this.$objectInfo.data.recordTypeInfos );
}