You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/connections/functions/source-functions.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -261,6 +261,12 @@ The `Segment.set()` method accepts an object with the following fields:
261
261
> warning ""
262
262
> When you use the `set()` method, you won't see events in the Source Debugger. Segment only sends events to connected warehouses.
263
263
264
+
### Variable scoping
265
+
266
+
Declare settings variables in the function handler, rather than globally in your function. This prevents you from leaking the settings values across other function instances.
267
+
268
+
The handler for Source functions is `onRequest()`.
0 commit comments