Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default createAction(props => {
return useObservable(
timer(0, 1000).pipe(
map(n => ({
label: n % 2 === 0 ? 'Tick' : 'Tack'
}))
)
)
})
export default createAction(function ObservableAction(docInfo) {
return useObservable(
timer(0, 1000).pipe(
map(n => ({
label: n % 2 === 0 ? 'Tick' : 'Tack'
}))
)
)
})