Fork me on GitHub
#re-frame
<
2020-07-06
>
benny21:07:00

anyone know why i’m getting these error messages from loading re-frisk? > TypeError: fexpr__46516.call is not a function. (In ‘fexpr__46516.call(null)’, ‘fexpr__46516.call’ is undefined) reason i know it’s re-frisk is it doesn’t happen if i remove my re-frisk preload from shadow

Rabie22:07:40

Hello, So I'm learning reframe by programming a checkers game with an AI to evaluate the oponent moves. The sequence of the program is the following: • Human clicks on a move which triggers an event • Re-frame catches the event and updates db. • Re-frame renders the new board based on the db update • The AI algorithm starts to calculate the move of the oponent (it takes a little while) The problem is that sometimes the AI starts working before showing the move. So I have to wait for the end of the AI calculation to see the rendering of the human move and the oponent at the same time. Is there a way in reframe to force rendering to show the human move before starting the AI function? Thanks for your help

mikethompson22:07:56

Short answer: use ^:flush-dom