Add API configuration
This commit is contained in:
parent
7a81bbaec6
commit
e97720bc24
9 changed files with 23 additions and 4 deletions
|
@ -10,6 +10,7 @@ const myWorker = window.Worker && new Worker('workers/message_worker.js');
|
|||
|
||||
export function UseWorker(
|
||||
state: IHistoryState,
|
||||
configurationUrl: string | undefined,
|
||||
setMessages: React.Dispatch<React.SetStateAction<IMessage[]>>): void {
|
||||
React.useEffect(() => {
|
||||
// use webworker for the stringify to avoid freezing
|
||||
|
@ -30,6 +31,7 @@ export function UseWorker(
|
|||
}
|
||||
export function UseAsync(
|
||||
state: IHistoryState,
|
||||
configurationUrl: string | undefined,
|
||||
setMessages: React.Dispatch<React.SetStateAction<IMessage[]>>): void {
|
||||
React.useEffect(() => {
|
||||
const request: IGetFeedbackRequest = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue