useAsyncData.ts
api.ts
interface AsyncState<T> {
                                      data: T | null;
                                      loading: boolean;
                                       error: string | null;
                                  }

    export const useAsyncData = <T>(
    fetchFn: () => Promise<T>
    ): AsyncState<T> => {
    const [state, setState] = useState<AsyncState<T>>({
    data: null,
    loading: true,
    error: null,
    });

   useEffect(() => {
    fetchFn()
      .then(data => setState({ 
        data, 
        loading: false, 
        error: null 
      }))
      .catch(error => setState({ 
        data: null, 
        loading: false, 
        error: error.message 
      }));
    }, []);

    return state;
   };

Get to know me

About Me

A passionate software engineer who believes great code is not just functional, but readable, maintainable, and impactful.

Me
A CSE undergrad Student who is just a bit curious about everything related to technology and everything. I have learnt a lot of things in my journey so far and I am still learning. First started with HTML, CSS and JS and then I started exploring React and Next.js, but eventually I finding my interest in Flutter and Dart. Now contributing to open source projects and again still learning...

My Journey

Intern - SQL Developer @ Elevate Labs

2025

Worked on Database Management and SQL & PostgreSQL queries.

MySQLPostgreSQLGit

Flutter Bootcamp @ Udemy

2025

Developed Apps using Flutter and Dart.

FlutterDartFirebaseOOPState Management

Data Science Bootcamp @ GeeksforGeeks

2025

Learned Data Science concepts and applied them in projects.

PythonData ScienceMachine LearningPandasNumPyMatplotlibNLPWeb ScrapingImage Processing

Data Structures and Algorithms using C @ Self Learning

2024

Learned Data Structures and Algorithms using C.

Data StructuresAlgorithmsC

Oops using C++ @ Self Learning

2024

Learned Object-Oriented Programming concepts using C++.

Object-Oriented ProgrammingC++

Student @ Self Learning

2023

Learned HTML, CSS, JS and started exploring React.

HTMLCSSJavaScript

Featured Projects

A selection of projects showcasing my expertise in full-stack development, from concept to deployment.

Flood Prediction Website

Flood Prediction Website

A Weather Flood Prediction website that takes live weather data as parameter .

APIHTMLCSSJSFAST APIPython
Task Management App with ISAR DB

Task Management App with ISAR DB

A Simple and Modern Todo App using ISAR DB.

FlutterDartISAR DBBLoC
DataBase Management Systems

DataBase Management Systems

A Database Management System which utilizes Python Faker to generate real-like data.

MySqlGITSCHEMAPython3NF
Anonn Bloging Platform

Anonn Bloging Platform

A anonymous blogging platform where users can share their thoughts without revealing their identity.

Next.jsTailwind CSSVanta.jsSupabaseThree.js

Skills & Tools

Next.js
75%
Tailwind CSS
95%
DART
70%
Flutter
80%
JavaScript
80%
TypeScript
70%
C++
80%
Python
70%
FastAPI
80%
MySQL
87%
PostgreSQL
75%
Git
90%
Vercel
85%

Resume & Experience

Download my full resume to learn more about my professional experience and technical background.

Let's Build Something Together

Always interested in new opportunities and interesting projects. Feel free to reach out!

Email

sandeepsarkar316@gmail.com

LinkedIn

Sandeep Sarkar

GitHub

@sandy4242

Location

Siliguri, West Bengal, India

Crafting digital experiences with code

© 2025 Sandy . All rights reserved.