re-frame

https://github.com/Day8/re-frame/blob/master/docs/README.md https://github.com/Day8/re-frame/blob/master/docs/External-Resources.md
benny 2020-07-06T21:51:00.283500Z

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

Rabie 2020-07-06T22:08:40.289900Z

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

2020-07-06T22:11:56.290600Z

Short answer: use ^:flush-dom

Rabie 2020-07-06T22:21:17.291Z

Thank you @mikethompson !