Ryan Chandler пре 5 година
родитељ
комит
ef37f9c792
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      README.md

+ 2 - 2
README.md

@@ -114,14 +114,14 @@ The `<span>` will now have "Amazing Alpine Application" set as its `innerText`.
 
 ### Modifying state from outside of Alpine
 
-You can modify your global state from external scripts using the `Spruce` object:
+You can modify your global state from external scripts using the `Spruce.store()` method too:
 
 ```javascript
 Spruce.store('application', {
     name: 'Amazing Alpine Application'
 })
 
-Spruce.stores.application.name = 'Amazing Spruce Integration'
+Spruce.store('application').name = 'Amazing Spruce Integration'
 ```
 
 This will trigger Alpine to re-evaluate your subscribed components and re-render.