Skip to content

Commit

Permalink
fix track docs (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajwootto authored Jan 18, 2024
1 parent 18f2657 commit 7f01ca3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/sdk/client-side-sdks/nextjs/nextjs-usage-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ import { useTrack } from '@devcycle/nextjs-sdk'
export default MyComponent = function () {
const trackEvent = useTrack()
return (
<button onClick={() => trackEvent('myEvent')}>
<button onClick={() => trackEvent({type: 'myEvent'})}>
Track Event
</button>
)
Expand Down Expand Up @@ -230,8 +230,6 @@ The SDK exposes various initialization options which can be set by passing a `De
|-----------------|---------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------|
| staticMode | Boolean | Disable dynamic request features to allow the SDK to be used on statically rendered pages. |
| enableStreaming | Boolean | Enable the SDK's streaming mode for non-blocking variable value retrieval with Suspense (advanced). |
| logger | [DevCycleLogger](https://github.com/DevCycleHQ/js-sdks/blob/main/lib/shared/types/src/logger.ts#L2) | Logger override to replace default logger |
| logLevel | [DevCycleDefaultLogLevel](https://github.com/DevCycleHQ/js-sdks/blob/main/lib/shared/types/src/logger.ts#L12) | Set log level of the default logger. Options are: `debug`, `info`, `warn`, `error`. Defaults to `info`. |
| eventFlushIntervalMS | Number | Controls the interval between flushing events to the DevCycle servers in milliseconds, defaults to 10 seconds. |
| flushEventQueueSize | Number | Controls the maximum size the event queue can grow to until a flush is forced. Defaults to `100`. |
| maxEventQueueSize | Number | Controls the maximum size the event queue can grow to until events are dropped. Defaults to `1000`. |
Expand Down

1 comment on commit 7f01ca3

@vercel
Copy link

@vercel vercel bot commented on 7f01ca3 Jan 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.