November 2021 Summaries
2 posts from SuperTokens
Filter
Month:
Year:
Post Summaries
Back to Blog
Redux requires the state to be immutable to efficiently detect changes and trigger re-renders in React applications. This immutability is achieved by creating a new copy of the state whenever an update is needed, rather than directly altering the existing state. The distinction between "value" and "reference" is crucial, as React components decide to re-render based on whether the references of state and props have changed. A deep comparison of all fields within a potentially complex state structure can be inefficient, so a shallow reference check is preferred. By ensuring that new state instances have different references, Redux optimizes performance without missing updates, as any change in reference is assumed to indicate a change in value, thereby triggering a re-render only when necessary.
Nov 11, 2021
872 words in the original blog post.
Vendor lock-in occurs when the cost of switching to a different vendor is prohibitively high, trapping customers with their current provider, which can be problematic if service quality declines, pricing increases, or the vendor goes out of business. This issue is particularly challenging for startups, which must design their software to mitigate these risks, often incurring additional engineering costs. Solutions include offering a self-hosted version of software that stores data in the customer's database, though this approach can be costly and complex; alternatively, allowing users to easily migrate their data between managed and self-hosted versions can offer flexibility and control. Additionally, providing customizability of code and features to meet business requirements, potentially through open-source or "source available" models, can reduce reliance on the vendor. Despite seeming counterintuitive, making it easy to migrate away from the product can enhance customer trust and attract new users by demonstrating a customer-first focus.
Nov 10, 2021
877 words in the original blog post.