fix: resolved violating issue on change of layout API call (#2164)

* fix: Removed Strict mode to stop render twice

* fix: resolved issue on change of layout API call
This commit is contained in:
Chintan Sudani 2023-02-02 10:52:14 +05:30 committed by GitHub
parent a2a8a32d1c
commit 48659a2957
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,6 +43,7 @@ function GridCardGraph({
const { ref: graphRef, inView: isGraphVisible } = useInView({
threshold: 0,
triggerOnce: true,
initialInView: true,
});
const [errorMessage, setErrorMessage] = useState<string | undefined>('');