52 Matching Annotations
  1. Sep 2025
    1. I'm now rendering a cup. that the cup that I rendered is no longer there. You might render your cup. You might say, "Well, no, Don, you're wrong. The cup is still there. I can see it." No, you're rendering your cup. And so you you're you're not rendering my cup. I rendered my cup

      for - adjacency - perspectival knowing - rendering - learned in child development - language usage - This is an interesting use of the word "render" to demonstrate how even shared human experiences are still uniquely seen from different perspectives - We impute objective reality, for instance of the cup, even though we are each uniquely rendering it in different ways - It is a direct result of our child development in which we learned how to employ words to label such social contexts - We establish rules for word usage at an early age, but we forget the original conditions which gave rise to them - When we remind ourselves of the original motivation, it is a bit of a shock to the system how strange this reality is

  2. Jun 2024
  3. Jan 2022
  4. Oct 2021
    1. This function allows you to modify (or replace) a fetch request for an external resource that happens inside a load function that runs on the server (or during pre-rendering). For example, your load function might make a request to a public URL like https://api.yourapp.com when the user performs a client-side navigation to the respective page, but during SSR it might make sense to hit the API directly (bypassing whatever proxies and load balancers sit between it and the public internet).
  5. Aug 2021
    1. It's time to put some of these pieces together. We know that: Calling setState() queues a render of that component React recursively renders nested components by default Context providers are given a value by the component that renders them That value normally comes from that parent component's state This means that by default, any state update to a parent component that renders a context provider will cause all of its descendants to re-render anyway, regardless of whether they read the context value or not!.
    2. All of these approaches use a comparison technique called "shallow equality". This means checking every individual field in two different objects, and seeing if any of the contents of the objects are a different value. In other words, obj1.a === obj2.a && obj1.b === obj2.b && ......... This is typically a fast process, because === comparisons are very simple for the JS engine to do. So, these three approaches do the equivalent of const shouldRender = !shallowEqual(newProps, prevProps).
    3. After it has collected the render output from the entire component tree, React will diff the new tree of objects (frequently referred to as the "virtual DOM"), and collects a list of all the changes that need to be applied to make the real DOM look like the current desired output. The diffing and calculation process is known as "reconciliation".
  6. Jun 2021
  7. May 2021
    1. The thing that makes the client-side invocation return the same data as the server-side one is that the results of calling fetch during SSR are serialized and inlined into the page. This ensures consistency when the page hydrates, and saves network round-trips (and also means less data needs to come over the wire, since everything can get compressed using the same gzip dictionary or whatever).
  8. Apr 2021
  9. Jan 2021
  10. Dec 2020
  11. Nov 2020
  12. Oct 2020
    1. The original promise of React was that you could re-render your entire app on every single state change without worrying about performance. In practice, I don’t think that’s turned out to be accurate. If it was, there’d be no need for optimizations like shouldComponentUpdate (which is a way of telling React when it can safely skip a component)
  13. Sep 2020
    1. Since you often want to do calculations based on state, Svelte also has the “reactive declaration” symbol, $:. It’s like a let declaration, but whenever any variable referenced in the expression — count in this case — is updated, the expression is re-run, the new variable’s value is updated, and the component is re-rendered.
  14. Aug 2020
    1. In the two years that I've been working with React professionally, I've never come to a point where I needed to force a re-render. I encourage you to read the article from the beginning if that's what you're here for because usually there's a better way of dealing with React components that aren't updating.
  15. Jul 2020
  16. May 2020
  17. Apr 2020
    1. By rendering important parts of the application with the real data on the server-side, an isomorphic application can show a meaningful initial page. On the other hand, client rendering application can’t show any meaningful information until it fetches all external data it needs. In the meantime, the only thing a user will see is a loading indicator.
  18. Jan 2020
  19. Dec 2019
  20. Nov 2019
  21. Sep 2019
  22. Aug 2019
  23. Jan 2016