# Vivek Vijayan - Hi guys.. I've one observation... Channel: #support Source: https://discord.com/channels/1233487248129921135/1526257995648864417 Started: 2026-07-13T16:04:23.255000+00:00 Last activity: 2026-07-20T07:50:23.496000+00:00 ## Vivek Vijayan — 2026-07-13T16:04:22.665000+00:00 Hi guys.. I've one observation. This is my high level code. ``` export const power_circuit = () => { return ( ); }; ``` If the modules are defined inside , then the will not connect. If modules are defined inside , is connects the ports without any issues. Attached images show both conditions **Case 1: module as ** ``` export const BmsMonitorModule = ({ name, schX, schY }: BmsMonitorModuleProps) => { return ( ... ) } ``` **Case 2: module as ** ``` export const BmsMonitorModule = ({ name, schX, schY }: BmsMonitorModuleProps) => { return ( ... ) } ``` Attachment: image.png — https://community.tscircuit.com/media/1526257995078701218 Attachment: image.png — https://community.tscircuit.com/media/1526257995489607782 ## Seve — 2026-07-13T16:44:26.890000+00:00 hey yes, use exposedNets ## Seve — 2026-07-13T16:44:34.005000+00:00 that will expose nets outside the subcircuit ## Seve — 2026-07-13T16:44:49.396000+00:00 subcircuits are isolated by default- this is actually useful in a lot of contexts but can be confusing ## Vivek Vijayan — 2026-07-15T12:35:10.847000+00:00 Is it possible to expose only selected nets? May be the nets from component only? ## Seve — 2026-07-15T15:28:46.162000+00:00 can you should me an example of the behavior you're looking for w/ some tsx? Just want to make sure i understand ## Vivek Vijayan — 2026-07-20T07:50:23.496000+00:00 Hi <@757706909351411845> , Is this the right approach to use `exposedNets` ```low-voltage-power-supply.tsx export const LowVoltagePowerSupply = ({ name, schX, schY, showAsSchematicBox }:ModuleProps) => { return ( ... ``` ```microcontroller-module.tsx export const MicrocontrollerModule = ({ name, schX, schY, showAsSchematicBox }:ModuleProps) => { return ( {/* 1. Module Ports (Automatically route to target pins) */} ... ``` ```control-circuit.tsx import { MicrocontrollerModule } from "./microcontroller-module/Workspace/microcontroller-module" import { LowVoltagePowerSupply } from "./low-voltage-power-supply/Workspace/low-voltage-power-supply" export const ControlCircuit = () => { return ( ... ```