Problem
The query function in EnhancedNostrProvider has bifurcated logic - it uses the custom pool for NIP-29 queries but falls back to the baseNostr provider for NIP-72 queries. This adds complexity and creates inconsistent data-fetching paths.
Current Issues
- Two different query paths (custom pool vs baseNostr)
- Increased complexity in debugging
- Potential for inconsistent behavior
- Makes the codebase harder to maintain
Proposed Solution
Route all queries through the enhanced pool to have a single, consistent data-fetching path while maintaining the smart routing logic.
Benefits
- Simplified architecture
- Consistent query behavior
- Easier debugging and maintenance
- Single source of truth for query logic
Implementation
Files Affected
src/components/EnhancedNostrProvider.tsx
Tags: #nip29
Problem
The
queryfunction in EnhancedNostrProvider has bifurcated logic - it uses the custompoolfor NIP-29 queries but falls back to thebaseNostrprovider for NIP-72 queries. This adds complexity and creates inconsistent data-fetching paths.Current Issues
Proposed Solution
Route all queries through the enhanced pool to have a single, consistent data-fetching path while maintaining the smart routing logic.
Benefits
Implementation
Files Affected
src/components/EnhancedNostrProvider.tsxTags: #nip29