reactive

swift
import Combine
import Foundation

class SearchViewModel: ObservableObject {
    @Published var searchQuery = ""
    @Published var results: [SearchResult] = []

Combine operators for data transformation

swift combine reactive
by Sofia Martinez 1 tab
php
<?php

namespace App\Http\Livewire;

use App\Models\Post;
use Livewire\Component;

Laravel Livewire for reactive components

laravel livewire reactive
by Carlos Mendez 2 tabs
swift
import Foundation
import Combine

class NetworkService {
    private let baseURL = "https://api.example.com"
    private var cancellables = Set<AnyCancellable>()

Combine framework for reactive programming

swift combine reactive
by Sofia Martinez 2 tabs
typescript
import { Injectable, computed, signal } from '@angular/core';

@Injectable({ providedIn: 'root' })
export class LoadingService {
  private readonly activeRequests = signal(0);

Global Loading Spinner via In-Flight Request Tracking in an Angular HttpInterceptor

angular http-interceptor rxjs
by codesnips 4 tabs
java
package com.example.demo.controller;

import com.example.demo.model.User;
import com.example.demo.service.ReactiveUserService;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;

Reactive programming with WebFlux

java spring-webflux reactive
by David Kumar 2 tabs
java
@RestController
@RequestMapping("/api/exports")
public class ExportController {

    private final CsvStreamWriter csvStreamWriter;

Streaming a Large CSV Export in Spring Boot with StreamingResponseBody

spring-boot streaming csv
by codesnips 4 tabs