Sitecore / jss

Software development kit for JavaScript developers building web applications with Sitecore Experience Platform
https://jss.sitecore.com
Apache License 2.0
263 stars 275 forks source link

[sitecore-jss-nextjs]: Recommending fix to minimized React 18 warnings with nextjs & defaultProps errors #1936

Open sengert-alliance opened 1 month ago

sengert-alliance commented 1 month ago

…efaultProps errors

Description / Motivation

Field Components have been updated to solve issue with react 18 throwing warnings that defaultProps is deprecated.

This change is to update fields to alleviate defaultProps warnings caused by react 18 which was introduced in jss version 21.7.0 where nextjs was upgraded to next 14.

Testing Details

Types of changes

pzi commented 1 month ago

Would be nice if the Sitecore team could backport this into v20 release, too, for those that are stuck on it for now :)

alternatively, would you accept PRs to fix v20 versions as well @ambrauer ?

sengert-alliance commented 2 days ago

@yavorsk is there any way that this can be expedited?