Just a clarification: The comment indicates that it is server side data. And the using statements pull in server side components. But I don't see any specific server side calls. It all seems to make HttpClient requests to get the data?
Also I would like to know the expectations of the async call to the API should be? It is expected that 'data' should also be an IQueryable? Cause it seems like this is getting all the data. Finally I have organized my code so that I have services that get the data. I am not sure how to get a specific instance of HttpClient. I use the HttpClientFactory as recommended by Microsoft
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("#app");
builder.Services.AddHttpClient<IBreakpointManagementDataService, BreakpointManagementDataService>(client => client.BaseAddress = new Uri("https://localhost:44370/"));
builder.Services.AddBlazorTable();
await builder.Build().RunAsync();
Just to see what happens I tried running the application with thiscode and 1) the call was never issued to the API endpopint (as per the network tab in the Chrome debugger) 2) seemed to have received an exception
When I explicitly pass put an HttpClient in the IOC I get requests but now I am running into CORS
Just a clarification: The comment indicates that it is server side data. And the using statements pull in server side components. But I don't see any specific server side calls. It all seems to make HttpClient requests to get the data? Also I would like to know the expectations of the async call to the API should be? It is expected that 'data' should also be an IQueryable? Cause it seems like this is getting all the data. Finally I have organized my code so that I have services that get the data. I am not sure how to get a specific instance of HttpClient. I use the HttpClientFactory as recommended by Microsoft
Just to see what happens I tried running the application with thiscode and 1) the call was never issued to the API endpopint (as per the network tab in the Chrome debugger) 2) seemed to have received an exception
When I explicitly pass put an HttpClient in the IOC I get requests but now I am running into CORS
There has to be a simpler way to get a Blazor Table? Originally posted by @KevinBurton in https://github.com/IvanJosipovic/BlazorTable/issues/267#issuecomment-791078090