You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no guarantee in receiving an immediate response in GitHub Issue Tracker, If you'd like to secure our response, you may consider PrimeReact PRO Support where support is provided within 4 business hours
I'm submitting a ... (check one with "x")
[*] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57
Codesandbox Case (Bug Reports)
Please fork the codesandbox below and create a case demonstrating your bug report. Issues without a codesandbox have much less possibility to be reviewed.
As per the documentation it specifies that there should be a lazy prop to "Defines if data is loaded and interacted with in lazy manner". Arguably there should also be a loading prop there too if it is to be aligned with DataTable, however it is noted that this is not implemented in DataView.
Currently adding the lazy prop into the DataView component gives the following compiler error:
No overload matches this call.
Overload 1 of 2, '(props: Readonly<DataViewProps>): DataView', gave the following error.
Type '{ value: any; lazy: true; itemTemplate: (data: any) => Element; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<DataView> & Readonly<DataViewProps> & Readonly<{ children?: ReactNode; }>'.
Property 'lazy' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<DataView> & Readonly<DataViewProps> & Readonly<{ children?: ReactNode; }>'.
Overload 2 of 2, '(props: DataViewProps, context?: any): DataView', gave the following error.
Type '{ value: any; lazy: true; itemTemplate: (data: any) => Element; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<DataView> & Readonly<DataViewProps> & Readonly<{ children?: ReactNode; }>'.
Property 'lazy' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<DataView> & Readonly<DataViewProps> & Readonly<{ children?: ReactNode; }>'.ts(2769)
Expected behavior
No compiler error and DataView deals with lazy loading data
Minimal reproduction of the problem with instructions
There is no guarantee in receiving an immediate response in GitHub Issue Tracker, If you'd like to secure our response, you may consider PrimeReact PRO Support where support is provided within 4 business hours
I'm submitting a ... (check one with "x")
Codesandbox Case (Bug Reports)
Please fork the codesandbox below and create a case demonstrating your bug report. Issues without a codesandbox have much less possibility to be reviewed.
https://codesandbox.io/s/primereact-test-zk43m
Current behavior
As per the documentation it specifies that there should be a
lazy
prop to "Defines if data is loaded and interacted with in lazy manner". Arguably there should also be aloading
prop there too if it is to be aligned with DataTable, however it is noted that this is not implemented in DataView.Currently adding the lazy prop into the
DataView
component gives the following compiler error:Expected behavior
No compiler error and DataView deals with lazy loading data
Minimal reproduction of the problem with instructions
See codesandbox: https://codesandbox.io/s/primereact-test-zk43m
Please tell us about your environment:
Visual Code
16.9.0
v3.3.3
The text was updated successfully, but these errors were encountered: