58 Matching Annotations
  1. Jul 2025
    1. But what if you want to update this user instance? For example on your website you have a form where the user can change their name, username, or avatar. When the form is submitted this gets stored on the server, but the site still shows the old user information, for example it still shows the old avatar of the user in the top menu. The user variable isn’t writable, so how do you overwrite this?
    1. One pattern that I love to use in my SvelteKit projects is returning writable stores from the layout’s load function. This makes it possible to fetch data from the server (for example the user object for the logged in user), and then you make this object available as a writable reactive store throughout the whole application. So when the user updates their username or avatar, you do the PUT request to the server and you get the updated user object back from the server as the response, you can simply update the $user writable store value and every place in your app where you show the user object gets updated immediately.
  2. Jun 2025
    1. State management is an integral aspect to handle for building responsive UI in Flutter. It is important to be careful about the state management approach you choose, as it directly affects the scalability, maintainability and performance of your app. Here’s a comparison and guide on using the three most popular options:

      Understand Flutter state management using Provider and BLoC. Learn how to build scalable and maintainable apps with efficient state handling strategies.

  3. May 2023
  4. Dec 2022
  5. Aug 2022
  6. Nov 2021
  7. Jul 2021
    1. BlackRock employs a stable of former policymakers, underscoring the importance the company occupies in both financial and policymaking ecosystems, in something akin to a shadow government entity.[157] Good government groups have documented 118 examples of “revolving door” activity by the company—cases in which a government official joined BlackRock’s roster, or vice versa.[158] In one particularly troubling example of how Washington’s revolving door operates, in 2017, a former BlackRock executive was put in charge of reviewing the FSOC’s work for the Treasury Department.[159] Unsurprisingly, the Department’s conclusion was that FSOC should “prioritize its efforts to address risks to financial stability through a process that emphasizes an activities-based or industry-wide approach,” the company’s preferred position.[160] This conclusion all but ensures that BlackRock will not be designated for greater regulation by the FSOC under the Trump administration.

      To Big To Fail? Above The Law? Shadow Government?

      The term "shadow government" comes up often when investigating Revolving Door partnerships between corporations and former government policymakers. One particular public corporation, BlackRock Investments is the poster child of revolving door activity and comparisons to a shadow government.

      BlackRock is front and center in the manipulation of todays Real Estate bubble.

      BlackRock should be marketed as;*The Largest Asset Manager and Keeper of The Neo-liberal Flame; We Kill Children to Make You Money and We Enjoy Doing It!*

    1. urql stays true to server data and doesn’t provide functions to manage local state like Apollo Client does. In my opinion, this is perfectly fine as full-on libraries to manage local state in React are becoming less needed. Mixing server-side state and local state seems ideal at first (one place for all states) but can lead to problems when you need to figure out which data is fresh versus which is stale and when to update it.
  8. Mar 2021
  9. Feb 2021
    1. The reason Reform does updating attributes and validation in the same step is because I wanna reduce public methods. This is to save users from having to remember state.

      I see what he means, but what would you call this (tag)? "have to remember state"? maybe "have to remember" is close enough

      Or maybe order is important / do things in the right order is all we need to describe the problem/need.

  10. Jan 2021
  11. Dec 2020
    1. React will update state throughout the user’s session. localStorage won’t change.When the user ends their session, save whatever the state is at that time to localStorage, making it available for hydrating in the next session.

      Is this safe/reliable to defer saving until then? What if browser crashes? I guess that's why onbeforeunload is needed. Hopefully onbeforeunload is reliable and can't be skipped (unless browser crashes?).

    1. Our large project is going to need highly structured and predictable state management, and Svelte’s flexibility scales from trivial projects up to our big one. We’re looking at statecharts and XState to wrangle this problem.
  12. Nov 2020
  13. Oct 2020
  14. Sep 2020
    1. So why don't we extract the shared state out of the components, and manage it in a global singleton? With this, our component tree becomes a big "view", and any component can access the state or trigger actions, no matter where they are in the tree!
    1. It turns out that even the length of time an element has been mounted is an important piece of state that determines what pixels the user sees. And some of this state can’t simply be lifted into our application state.

      What this means is that our desire to express UI using pure functions is in direct conflict with the very nature of the DOM. It’s a great way to describe a state => pixels transformation — perfect for game rendering or generative art — but when we’re building apps on the web, the idea chafes against the reality of a stateful medium.

  15. Jul 2020
  16. Jun 2020
  17. Nov 2019
  18. Oct 2019
  19. Sep 2019
  20. Aug 2018
    1. Vue (pronounced /vjuː/, like view) is a progressive framework for building user interfaces. Unlike other monolithic frameworks, Vue is designed from the ground up to be incrementally adoptable. The core library is focused on the view layer only, and is easy to pick up and integrate with other libraries or existing projects.

      So how model layer can be integreted?