Topic: Weird error with asynchronous data source
shellxsoftware priority asked 1 year ago
Expected behavior Basically i'm getting a weird error when trying to use an asynchronous data source for data tables.
Actual behavior Type 'any | null' is not assignable to type 'any'. Type 'null' is not assignable to type 'any'.ngtsc(2322) https://i.gyazo.com/a0ed3a32c9a54fd57dbce3c1c6c91c63.png https://i.gyazo.com/f6348c1cfe7fcb4a5a4d736bfcd7a137.png
Resources (screenshots, code snippets etc.) See above ^
@shellxsoftware Please try to disable type checking for this input:
[dataSource]="$any(dataSource$ | async)"
You may also need to initialize the dataSource value in ts file:
dataSource$: Observable<any> = of();
We will check what we can do to resolve this problem on our end.
Edit: This problem was fixed in v1.6.0
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Priority
- Premium support: Yes
- Technology: MDB Angular
- MDB Version: MDB5 1.3.0
- Device: --
- Browser: --
- OS: --
- Provided sample code: No
- Provided link: Yes