Skip to content
View nelsonprsousa's full-sized avatar
:octocat:
Working from home
:octocat:
Working from home

Organizations

@wetrip

Block or report nelsonprsousa

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
nelsonprsousa/README.md

Hi there 👋

  • 💬 Ask me about Wanderlust project, .NET, React Native or Qwik. Willing to help OSS projects!
  • 📫 How to reach me: Send me a DM on Twitter
  • 🐦 Twitter
  • ⚡ Fun fact: I practiced Mushing in my junior years. Huge fan of F1 and Mark Knopfler
nelsonprsousa

Pinned Loading

  1. Useful to avoid multiple requests to... Useful to avoid multiple requests to the same Task<T> (e.g. an HTTP GET operation). You probably want to registered the loader as a scoped or singleton service. Bare in mind that GetOrAdd is *not* atomic, although you can use your loader safely since it is thread-safe (usage of Lazy<Task<T>> to avoid multiple operations to resolve Task<T>).
    1
    public abstract class BaseLoader<T> : IBaseLoader<T>
    2
        where T : class
    3
    {
    4
        private readonly ConcurrentDictionary<string, Lazy<Task<T?>>> cache = new();
    5
    
                  
  2. The expected native behavior of scro... The expected native behavior of scrollable components is to respond to events from navigation that will scroll to top when tapping on the active tab as you would expect from native tab bars. Works with react-native-navigation.
    1
    import { useEffect, useRef } from 'react';
    2
    import { ScrollView } from 'react-native';
    3
    import { Navigation } from 'react-native-navigation';
    4
    
                  
    5
    const useScrollToTop = ({
  3. QwikDev/qwik QwikDev/qwik Public

    Instant-loading web apps, without effort

    TypeScript 21k 1.3k