
Working from home
Senior Software Engineer @Farfetch
-
Farfetch
- Remote across Europe
- @nelsonprsousa
- in/nelsonprsousa
Pinned Loading
-
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>). 1public abstract class BaseLoader<T> : IBaseLoader<T>
2where T : class
3{
4private readonly ConcurrentDictionary<string, Lazy<Task<T?>>> cache = new();
5 -
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. 1import { useEffect, useRef } from 'react';
2import { ScrollView } from 'react-native';
3import { Navigation } from 'react-native-navigation';
45const useScrollToTop = ({
-
213 contributions in the last year
Day of Week | April Apr | May May | June Jun | July Jul | August Aug | September Sep | October Oct | November Nov | December Dec | January Jan | February Feb | March Mar | April Apr | ||||||||||||||||||||||||||||||||||||||||
Sunday Sun | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Monday Mon | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Tuesday Tue | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Wednesday Wed | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Thursday Thu | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Friday Fri | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Saturday Sat |
Less
No contributions.
Low contributions.
Medium-low contributions.
Medium-high contributions.
High contributions.
More
Activity overview
Contributed to
QwikDev/qwik,
better-auth/better-auth,
nelsonprsousa/qwik-render-request-handler-bug
and 5 other
repositories
Loading
Contribution activity
April 2025
Created 1 commit in 1 repository
4
contributions
in private repositories
Apr 2 – Apr 4