© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Reusing PgClient to Avoid HMR Connection Errors - Effect Community
EC
Effect Community
•
2y ago
•
3 replies
morvud
Reusing PgClient to Avoid HMR Connection Errors
I sometimes run into the
"PgClient
: Failed to connect
" error
, probably due to HMR
. What is the best way to reuse the PgClient layer so it doesn
't get recreated every time modules reload
?
Effect Community
Join
Production-grade applications in TypeScript.
6,221
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Trouble using PgClient with Cloudflare Hyperdrive connection string
EC
Effect Community / sql
16mo ago
Prevent PgClient from Parsing Dates to JS Dates
EC
Effect Community / sql
9mo ago
Dynamic Password Support in PgClient for RDS Connections
EC
Effect Community / sql
6mo ago
Implementation of `PgClient.reactive` in Effect Typescript Library
EC
Effect Community / sql
14mo ago