question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Only update and insert works

See original GitHub issue

I think the only hooks that work ( have not tried destroy,remove)

is update and insert

v-dom = h 'div','hello world'



hook = {}

hook.post = !->
    console.log 'post'
hook.update = !->
    console.log 'update'

v-dom.data.hook = hook


new-v-dom = patch (document.getElementById 'app'),v-dom




<- wait 500

v-dom1 = h 'div','hello world1'


hook = {}

hook.post = !->
    console.log 'post1'
hook.update = !->
    console.log 'update1'

v-dom1.data.hook = hook


new-v-dom1 = patch v-dom,v-dom1

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
sourcevaultcommented, Jul 12, 2016

Oh right.

I might distill down the use case for each since its confusing.

cheers tylor !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Insert into a MySQL table or update if exists - Stack Overflow
REPLACE works exactly like INSERT , except that if an old row in the table has the same value as a new row...
Read more >
Insert or Update the record into a table only if there is change ...
I have two table with the following structure. I want to create the trigger when I update the value of Employee table column ......
Read more >
sql server 2016 - Replication of only updates and inserts
I just want to know if the replication between servers can only of updates and inserts, without taking into account the deletions.
Read more >
Adding Table Rows using INSERT and UPSERT
SQL Beginner's Guide​​ You use the INSERT statement to insert or update a single row in an existing table. The word UPSERT combines...
Read more >
How SQL Triggers Work for Insert, Update, Delete and Truncate
In this tip we look at how SQL Server triggers are processed for different data modifications like insert, update, delete and truncate.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found