Wanted to have a quick question regarding V2 SDK for React.
I saw that the only reason, why it is not recommended is that it has performance issues, on which team is currently working.
What are those performance issues, and how badly can they affect prod. webpage? We’re currently having a WIP migration ready, since V2 SDK fixes cache issues on NextJS, and are trying to assess risks connected to the migration.
Just for information, our implementation with V1 SDK was creating requests with TTL of 1s, which caused our Next Cache to explode with writes. If there’s a fix for that issue, we might stay on V1 SDK until V2 is stable.
My name is Veronika and I am a Customer Engineer here at Builder.
The V2 SDK for React is currently not being recommended for production just yet as we’re working through some of the performance roadblocks. Some of the common concerns when switching to the V2 SDK would include increased bundle size - early versions of the SDK could include additional dependencies or less optimized code, resulting in a larger JS payload that could affect your page latency/ load time.
There might be rendering performance inefficiencies in how components re-render due to changes in state/ props, which could in turn lead to sluggish UI interactions or CPU usage.
Another thing that that the migration to V2 SDK might include is the SDK might generate more network requests or inefficient data fetching patterns that could slow down your application performance.
If you’re still currently using React- Builder recommends continuing to use the Gen1 SDK, as Julius linked on the doc above. Once Gen2 SDK becomes recommended for React - we can then happily recommend migrating to GEN2 SDK.
Please let me know if you have any further questions,