Brian Law

Results 3 comments of Brian Law

Have you fixed it? I am having the same error with postgis

Turns out I have to use `sql.unsafe` Here is my code ```sql`alter table draft.${sql(draftName)} alter column geom type geometry(${sql.unsafe( geometryType, )}, 4326) using ST_Transform(ST_SetSRID(geom, ${sql.unsafe(srid)}),4326);` ```

I came across this issue too, and looks like its react's strict mode that leads to useEffect being ran twice The solution for me is to run `destroy()` on unmount